23 static void *ngx_http_spdy_create_main_conf(
ngx_conf_t *cf);
24 static char *ngx_http_spdy_init_main_conf(
ngx_conf_t *cf,
void *conf);
26 static void *ngx_http_spdy_create_srv_conf(
ngx_conf_t *cf);
27 static char *ngx_http_spdy_merge_srv_conf(
ngx_conf_t *cf,
void *parent,
30 static char *ngx_http_spdy_recv_buffer_size(
ngx_conf_t *cf,
void *post,
32 static char *ngx_http_spdy_pool_size(
ngx_conf_t *cf,
void *post,
void *data);
33 static char *ngx_http_spdy_streams_index_mask(
ngx_conf_t *cf,
void *post,
42 { ngx_http_spdy_recv_buffer_size };
44 { ngx_http_spdy_pool_size };
46 { ngx_http_spdy_streams_index_mask };
56 &ngx_http_spdy_recv_buffer_size_post },
63 &ngx_http_spdy_pool_size_post },
77 &ngx_http_spdy_streams_index_mask_post },
98 &ngx_http_spdy_headers_comp_bounds },
105 ngx_http_spdy_add_variables,
108 ngx_http_spdy_create_main_conf,
109 ngx_http_spdy_init_main_conf,
111 ngx_http_spdy_create_srv_conf,
112 ngx_http_spdy_merge_srv_conf,
121 &ngx_http_spdy_module_ctx,
122 ngx_http_spdy_commands,
125 ngx_http_spdy_module_init,
138 ngx_http_spdy_variable, 0, 0, 0 },
141 ngx_http_spdy_request_priority_variable, 0, 0, 0 },
152 for (v = ngx_http_spdy_vars; v->
name.
len; v++) {
170 if (r->spdy_stream) {
175 v->
data = (u_char *)
"2";
190 if (r->spdy_stream) {
197 if (v->
data == NULL) {
201 v->
data[0] =
'0' + (u_char) r->spdy_stream->priority;
222 ngx_http_spdy_create_main_conf(
ngx_conf_t *cf)
238 ngx_http_spdy_init_main_conf(
ngx_conf_t *cf,
void *conf)
275 ngx_http_spdy_merge_srv_conf(
ngx_conf_t *cf,
void *parent,
void *child)
300 ngx_http_spdy_recv_buffer_size(
ngx_conf_t *cf,
void *post,
void *data)
305 return "value is too small";
313 ngx_http_spdy_pool_size(
ngx_conf_t *cf,
void *post,
void *data)
319 "the pool size must be no less than %uz",
326 "the pool size must be a multiple of %uz",
336 ngx_http_spdy_streams_index_mask(
ngx_conf_t *cf,
void *post,
void *data)
344 if (*np == 0 || (*np & mask)) {
345 return "must be a power of two";