From 5e5f814d63d4e00365b0ae726bc18831aa28e88f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 1 Feb 2018 16:48:20 -0800 Subject: fixes #174 Define public HTTP client API --- src/supplemental/http/http.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/supplemental/http/http.h') 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 -- cgit v1.2.3-70-g09d2