summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-07-19 13:36:59 +0200
committerAlejandro Colomar <alx@nginx.com>2023-09-03 18:38:05 +0200
commit4977d280cacc7dd2bbbd61a00d133574f18cb118 (patch)
treec63e0b8b40a774b3e30e4e0bbb6b3fb2ecc81f1d /src/nxt_http.h
parentecc27ab1d4adba7223beb3b122f9b041ab6ae323 (diff)
downloadunit-4977d280cacc7dd2bbbd61a00d133574f18cb118.tar.gz
unit-4977d280cacc7dd2bbbd61a00d133574f18cb118.tar.bz2
HTTP: filter: supporting a list of filter_handlers
Filter handlers are a new handler that takes place when a buffer is about to be sent. It filters (modifies) the contents of the buffer in-place, so that the new contents will be sent. Several filters can be applied in a loop. Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index d614b303..300c197d 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -142,6 +142,7 @@ struct nxt_http_request_s {
nxt_work_handler_t body_handler;
void *body_handler_data;
+ nxt_list_t *response_filters;
nxt_nsec_t start_time;
@@ -439,4 +440,5 @@ nxt_msec_t nxt_h1p_conn_request_timer_value(nxt_conn_t *c, uintptr_t data);
extern const nxt_conn_state_t nxt_h1p_idle_close_state;
+
#endif /* _NXT_HTTP_H_INCLUDED_ */