Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.h @ 7191:61d276dcd493
HTTP/2: more style, comments, and debugging.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 29 Jan 2018 16:06:33 +0300 |
parents | 12cadc4669a7 |
children | ca8f8a443c11 |
comparison
equal
deleted
inserted
replaced
7190:e11a0679d349 | 7191:61d276dcd493 |
---|---|
46 #define NGX_HTTP_V2_PADDED_FLAG 0x08 | 46 #define NGX_HTTP_V2_PADDED_FLAG 0x08 |
47 #define NGX_HTTP_V2_PRIORITY_FLAG 0x20 | 47 #define NGX_HTTP_V2_PRIORITY_FLAG 0x20 |
48 | 48 |
49 #define NGX_HTTP_V2_MAX_WINDOW ((1U << 31) - 1) | 49 #define NGX_HTTP_V2_MAX_WINDOW ((1U << 31) - 1) |
50 #define NGX_HTTP_V2_DEFAULT_WINDOW 65535 | 50 #define NGX_HTTP_V2_DEFAULT_WINDOW 65535 |
51 | |
52 #define NGX_HTTP_V2_DEFAULT_WEIGHT 16 | |
51 | 53 |
52 | 54 |
53 typedef struct ngx_http_v2_connection_s ngx_http_v2_connection_t; | 55 typedef struct ngx_http_v2_connection_s ngx_http_v2_connection_t; |
54 typedef struct ngx_http_v2_node_s ngx_http_v2_node_t; | 56 typedef struct ngx_http_v2_node_s ngx_http_v2_node_t; |
55 typedef struct ngx_http_v2_out_frame_s ngx_http_v2_out_frame_t; | 57 typedef struct ngx_http_v2_out_frame_s ngx_http_v2_out_frame_t; |
270 h2c->last_out = frame; | 272 h2c->last_out = frame; |
271 } | 273 } |
272 | 274 |
273 | 275 |
274 void ngx_http_v2_init(ngx_event_t *rev); | 276 void ngx_http_v2_init(ngx_event_t *rev); |
275 void ngx_http_v2_request_headers_init(void); | |
276 | 277 |
277 ngx_int_t ngx_http_v2_read_request_body(ngx_http_request_t *r); | 278 ngx_int_t ngx_http_v2_read_request_body(ngx_http_request_t *r); |
278 ngx_int_t ngx_http_v2_read_unbuffered_request_body(ngx_http_request_t *r); | 279 ngx_int_t ngx_http_v2_read_unbuffered_request_body(ngx_http_request_t *r); |
279 | 280 |
280 void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc); | 281 void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream, ngx_int_t rc); |