diff options
| author | Alejandro Colomar <alx@nginx.com> | 2023-07-19 13:36:59 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@nginx.com> | 2023-09-03 18:38:05 +0200 |
| commit | 4977d280cacc7dd2bbbd61a00d133574f18cb118 (patch) | |
| tree | c63e0b8b40a774b3e30e4e0bbb6b3fb2ecc81f1d /src/nxt_http.h | |
| parent | ecc27ab1d4adba7223beb3b122f9b041ab6ae323 (diff) | |
| download | unit-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.h | 2 |
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_ */ |
