aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-11 08:36:27 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-11 08:36:27 -0800
commit588611e180f2e47caa778a6265b1d7f73b90648a (patch)
tree5bb96863618e6baa5343aa9f8fe270dcf0ea8ed6
parent82d9d77b445081a3b2f67743c42d4a20a2a71d13 (diff)
downloadnng-588611e180f2e47caa778a6265b1d7f73b90648a.tar.gz
nng-588611e180f2e47caa778a6265b1d7f73b90648a.tar.bz2
nng-588611e180f2e47caa778a6265b1d7f73b90648a.zip
http: remove public access to req / res structures
-rw-r--r--include/nng/http.h4
-rw-r--r--src/supplemental/http/http_public.c10
2 files changed, 0 insertions, 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)
{