From cda4885676f009e2e7f2ad5e6c52743efc8b8924 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 17 Nov 2020 22:46:42 -0800 Subject: Centralize the scheme handling for HTTP schemes. --- src/supplemental/http/http_api.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/supplemental/http/http_api.h') 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 -- cgit v1.2.3-70-g09d2