From 4977d280cacc7dd2bbbd61a00d133574f18cb118 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 19 Jul 2023 13:36:59 +0200 Subject: 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 --- src/nxt_http.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nxt_http.h') 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_ */ -- cgit