diff options
| author | Alejandro Colomar <alx@nginx.com> | 2023-07-19 13:36:59 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-10-25 13:37:55 +0200 |
| commit | ddb7d61f6173c2f191f4eddc15f1f912e940e42c (patch) | |
| tree | de151a557a3328dbfcf438bdf1abcca79d71709f /src/nxt_http.h | |
| parent | 9be4b16f0c99a8dd2e56fa5cd2a153ad5683c2a3 (diff) | |
| download | unit-ddb7d61f6173c2f191f4eddc15f1f912e940e42c.tar.gz unit-ddb7d61f6173c2f191f4eddc15f1f912e940e42c.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>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
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_ */ |
