diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-18 18:49:01 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-18 18:49:01 -0800 |
| commit | dd4695f9492b4f30978e9043d7d6925bfe15a715 (patch) | |
| tree | 84569362574fabe4b984a82e3232e1b75397bb8f /src/supplemental/http/http_api.h | |
| parent | ca6cfe359fa55a5a7f4b6ae73500ffd98e6ee968 (diff) | |
| download | nng-dd4695f9492b4f30978e9043d7d6925bfe15a715.tar.gz nng-dd4695f9492b4f30978e9043d7d6925bfe15a715.tar.bz2 nng-dd4695f9492b4f30978e9043d7d6925bfe15a715.zip | |
Merge internal and external URL APIs. No need for
the separation of nni_url and nng_url.
Diffstat (limited to 'src/supplemental/http/http_api.h')
| -rw-r--r-- | src/supplemental/http/http_api.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/supplemental/http/http_api.h b/src/supplemental/http/http_api.h index 813f9fe6..dbda53ae 100644 --- a/src/supplemental/http/http_api.h +++ b/src/supplemental/http/http_api.h @@ -108,7 +108,7 @@ extern int nni_http_conn_getopt( // Note that the iovs of the aio's are clobbered by these methods -- callers // must not use them for any other purpose. -extern int nni_http_req_alloc(nni_http_req **, const nni_url *); +extern int nni_http_req_alloc(nni_http_req **, const nng_url *); extern int nni_http_res_alloc(nni_http_res **); extern int nni_http_res_alloc_error(nni_http_res **, uint16_t); extern void nni_http_req_free(nni_http_req *); @@ -170,7 +170,7 @@ extern void nni_http_write_full(nni_http_conn *, nni_aio *); // a restricted binding is required, we recommend using a URL consisting // of an empty host name, such as http:// or https:// -- this would // convert to binding to the default port on all interfaces on the host. -extern int nni_http_server_init(nni_http_server **, const nni_url *); +extern int nni_http_server_init(nni_http_server **, const nng_url *); // nni_http_server_fini drops the reference count on the server, and // if this was the last reference, closes down the server and frees @@ -349,7 +349,7 @@ extern const char *nni_http_handler_get_uri(nni_http_handler *); // Client stuff. -extern int nni_http_client_init(nni_http_client **, const nni_url *); +extern int nni_http_client_init(nni_http_client **, const nng_url *); extern void nni_http_client_fini(nni_http_client *); // nni_http_client_set_tls sets the TLS configuration. This wipes out |
