aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-01 16:48:20 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-01 20:07:09 -0800
commit5e5f814d63d4e00365b0ae726bc18831aa28e88f (patch)
tree804a930d4f9f941cd75e156f169a52e7110ef1e9 /src/supplemental/http/http.h
parent3dae30ed5e543dc73fc993334ef56b9b157b9b3c (diff)
downloadnng-5e5f814d63d4e00365b0ae726bc18831aa28e88f.tar.gz
nng-5e5f814d63d4e00365b0ae726bc18831aa28e88f.tar.bz2
nng-5e5f814d63d4e00365b0ae726bc18831aa28e88f.zip
fixes #174 Define public HTTP client API
Diffstat (limited to 'src/supplemental/http/http.h')
-rw-r--r--src/supplemental/http/http.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/supplemental/http/http.h b/src/supplemental/http/http.h
index e44ddc76..7fadf705 100644
--- a/src/supplemental/http/http.h
+++ b/src/supplemental/http/http.h
@@ -20,6 +20,7 @@ typedef struct nng_http_res nni_http_res;
typedef struct nng_http_conn nni_http_conn;
typedef struct nng_http_handler nni_http_handler;
typedef struct nng_http_server nni_http_server;
+typedef struct nng_http_client nni_http_client;
// These functions are private to the internal framework, and really should
// not be used elsewhere.
@@ -259,9 +260,7 @@ extern const char *nni_http_handler_get_uri(nni_http_handler *);
// Client stuff.
-typedef struct nni_http_client nni_http_client;
-
-extern int nni_http_client_init(nni_http_client **, nni_url *);
+extern int nni_http_client_init(nni_http_client **, const nni_url *);
extern void nni_http_client_fini(nni_http_client *);
// nni_http_client_set_tls sets the TLS configuration. This wipes out