From 588611e180f2e47caa778a6265b1d7f73b90648a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 11 Jan 2025 08:36:27 -0800 Subject: http: remove public access to req / res structures --- include/nng/http.h | 4 ---- src/supplemental/http/http_public.c | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/include/nng/http.h b/include/nng/http.h index 6a57cfe6..69e57fa5 100644 --- a/include/nng/http.h +++ b/include/nng/http.h @@ -104,10 +104,6 @@ typedef struct nng_http_res nng_http_res; // normally only used for exchanging HTTP requests and responses. typedef struct nng_http_conn nng_http; -// These methods obtain a pointer to the request or response structure -// that is embedded in the conn structure. -NNG_DECL nng_http_res *nng_http_conn_res(nng_http *); - // nng_http_close closes the underlying channel. Applications should // not use this channel after this operation is performed. NNG_DECL void nng_http_close(nng_http *); diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c index 5b39ba02..55c54394 100644 --- a/src/supplemental/http/http_public.c +++ b/src/supplemental/http/http_public.c @@ -138,16 +138,6 @@ nng_http_get_version(nng_http *conn) #endif } -nng_http_res * -nng_http_conn_res(nng_http *conn) -{ -#ifdef NNG_SUPP_HTTP - return (nni_http_conn_res(conn)); -#else - return (NULL); -#endif -} - int nng_http_set_status(nng_http *conn, uint16_t status, const char *reason) { -- cgit v1.2.3-70-g09d2