summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-11-20 16:41:01 +0000
committerAndrew Clayton <a.clayton@nginx.com>2025-04-14 18:11:53 +0100
commit45e40a8c252bfc014937bef0853ffb665125166d (patch)
tree9c5547ade84177f2543ded01124ebf018dc948c9 /src
parent89149c066cd5e929a6ca7a538a81480536aea61d (diff)
downloadunit-45e40a8c252bfc014937bef0853ffb665125166d.tar.gz
unit-45e40a8c252bfc014937bef0853ffb665125166d.tar.bz2
http: Add a mime_type member to nxt_http_response_t
This is to store the MIME type of the response which will be used by the HTTP compression patches as part of determining whether or not to compress the response. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/nxt_http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 19bbdda3..92c2b327 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -111,6 +111,7 @@ typedef struct {
nxt_http_field_t *content_type;
nxt_http_field_t *content_length;
nxt_off_t content_length_n;
+ const nxt_str_t *mime_type;
} nxt_http_response_t;