aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_api.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-11-17 22:46:42 -0800
committerGarrett D'Amore <garrett@damore.org>2020-11-17 22:49:59 -0800
commitcda4885676f009e2e7f2ad5e6c52743efc8b8924 (patch)
tree62dfc33e0559cbf84efb014dd17b687247cadda8 /src/supplemental/http/http_api.h
parent04974cc135ca461d8fce50fa8def0ca5fe13b101 (diff)
downloadnng-cda4885676f009e2e7f2ad5e6c52743efc8b8924.tar.gz
nng-cda4885676f009e2e7f2ad5e6c52743efc8b8924.tar.bz2
nng-cda4885676f009e2e7f2ad5e6c52743efc8b8924.zip
Centralize the scheme handling for HTTP schemes.
Diffstat (limited to 'src/supplemental/http/http_api.h')
-rw-r--r--src/supplemental/http/http_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/supplemental/http/http_api.h b/src/supplemental/http/http_api.h
index 33947abf..207f0230 100644
--- a/src/supplemental/http/http_api.h
+++ b/src/supplemental/http/http_api.h
@@ -382,4 +382,8 @@ extern void nni_http_transact_conn(
extern void nni_http_transact(
nni_http_client *, nni_http_req *, nni_http_res *, nni_aio *);
+// nni_http_stream_scheme returns the underlying stream scheme for a given
+// upper layer scheme.
+extern const char *nni_http_stream_scheme(const char *);
+
#endif // NNG_SUPPLEMENTAL_HTTP_HTTP_API_H