From 4f445061dc9dbc1e437ff04eff6f39f021bd5bec Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 12 Jan 2025 08:28:03 -0800 Subject: http: move connection properties to http_conn, use static Location for redirect --- src/supplemental/http/http_msg.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/supplemental/http/http_msg.h') diff --git a/src/supplemental/http/http_msg.h b/src/supplemental/http/http_msg.h index 5a13c409..4b4e03a6 100644 --- a/src/supplemental/http/http_msg.h +++ b/src/supplemental/http/http_msg.h @@ -31,7 +31,6 @@ typedef struct http_header nni_http_header; typedef struct nni_http_entity { char *data; size_t size; - bool own; // if true, data is "ours", and should be freed char clen[24]; // 64-bit lengths, in decimal char ctype[128]; // 63+63+; per RFC 6838 http_header content_type; @@ -40,17 +39,15 @@ typedef struct nni_http_entity { char *buf; size_t bufsz; bool parsed; + bool own; // if true, data is "ours", and should be freed } nni_http_entity; struct nng_http_req { nni_http_entity data; - http_header host_header; }; struct nng_http_res { nni_http_entity data; - bool iserr; - http_header location; }; extern void nni_http_free_header(http_header *); -- cgit v1.2.3-70-g09d2