-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathngx_http_apisix_module.h
74 lines (51 loc) · 2.68 KB
/
ngx_http_apisix_module.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef _NGX_HTTP_APISIX_H_INCLUDED_
#define _NGX_HTTP_APISIX_H_INCLUDED_
#include <ngx_http.h>
typedef struct {
ngx_flag_t delay_client_max_body_check;
ngx_int_t apisix_request_id_var_index;
} ngx_http_apisix_loc_conf_t;
typedef struct {
ngx_int_t buffer_num;
size_t buffer_size;
ngx_int_t level;
} ngx_http_apisix_gzip_t;
typedef struct {
STACK_OF(X509) *upstream_cert;
EVP_PKEY *upstream_pkey;
X509_STORE *upstream_trusted_store;
off_t client_max_body_size;
ngx_http_apisix_gzip_t *gzip;
ngx_http_log_handler_pt orig_log_handler;
unsigned client_max_body_size_set:1;
unsigned mirror_enabled:1;
unsigned request_buffering:1;
unsigned request_buffering_set:1;
unsigned request_header_set:1;
unsigned header_filter_by_lua_skipped:1;
unsigned body_filter_by_lua_skipped:1;
unsigned upstream_ssl_verify:1;
unsigned upstream_ssl_verify_set:1;
unsigned upstream_pass_trailers:1;
unsigned upstream_pass_trailers_set:1;
} ngx_http_apisix_ctx_t;
void ngx_http_apisix_set_upstream_ssl(ngx_http_request_t *r, ngx_connection_t *c);
ngx_flag_t ngx_http_apisix_get_upstream_ssl_verify(ngx_http_request_t *r, ngx_flag_t proxy_ssl_verify);
ngx_flag_t ngx_http_apisix_delay_client_max_body_check(ngx_http_request_t *r);
off_t ngx_http_apisix_client_max_body_size(ngx_http_request_t *r);
ngx_int_t ngx_http_apisix_is_gzip_set(ngx_http_request_t *r);
ngx_int_t ngx_http_apisix_get_gzip_buffer_conf(ngx_http_request_t *r,
ngx_int_t *num, size_t *size);
ngx_int_t ngx_http_apisix_get_gzip_compress_level(ngx_http_request_t *r);
ngx_int_t ngx_http_apisix_is_mirror_enabled(ngx_http_request_t *r);
ngx_int_t ngx_http_apisix_is_request_buffering(ngx_http_request_t *r, ngx_flag_t static_conf);
void ngx_http_apisix_mark_request_header_set(ngx_http_request_t *r);
ngx_int_t ngx_http_apisix_is_header_filter_by_lua_skipped(ngx_http_request_t *r);
ngx_int_t ngx_http_apisix_is_body_filter_by_lua_skipped(ngx_http_request_t *r);
ngx_flag_t ngx_http_apisix_is_ntls_enabled(ngx_http_conf_ctx_t *conf_ctx);
char * ngx_http_apisix_error_log_request_id(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
char * ngx_http_apisix_error_log_init(ngx_conf_t *cf);
char * ngx_http_apisix_error_log_request_id(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
ngx_int_t ngx_http_apisix_set_upstream_pass_trailers(ngx_http_request_t *r, int on);
ngx_int_t ngx_http_apisix_is_upstream_pass_trailers(ngx_http_request_t *r);
#endif /* _NGX_HTTP_APISIX_H_INCLUDED_ */