nxt_http_response.c (1131:ec7d924d8dfb) nxt_http_response.c (1459:358b957ca294)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 20 unchanged lines hidden (view full) ---

29 { nxt_string("Content-Length"), &nxt_http_response_field,
30 offsetof(nxt_http_request_t, resp.content_length) },
31 { nxt_string("Upgrade"), &nxt_http_response_skip, 0 },
32 { nxt_string("Sec-WebSocket-Accept"), &nxt_http_response_skip, 0 },
33};
34
35
36nxt_int_t
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 20 unchanged lines hidden (view full) ---

29 { nxt_string("Content-Length"), &nxt_http_response_field,
30 offsetof(nxt_http_request_t, resp.content_length) },
31 { nxt_string("Upgrade"), &nxt_http_response_skip, 0 },
32 { nxt_string("Sec-WebSocket-Accept"), &nxt_http_response_skip, 0 },
33};
34
35
36nxt_int_t
37nxt_http_response_hash_init(nxt_task_t *task, nxt_runtime_t *rt)
37nxt_http_response_hash_init(nxt_task_t *task)
38{
38{
39 return nxt_http_fields_hash(&nxt_response_fields_hash, rt->mem_pool,
39 return nxt_http_fields_hash(&nxt_response_fields_hash,
40 nxt_response_fields, nxt_nitems(nxt_response_fields));
41}
42
43
44nxt_int_t
45nxt_http_response_status(void *ctx, nxt_http_field_t *field,
46 uintptr_t data)
47{

--- 40 unchanged lines hidden ---
40 nxt_response_fields, nxt_nitems(nxt_response_fields));
41}
42
43
44nxt_int_t
45nxt_http_response_status(void *ctx, nxt_http_field_t *field,
46 uintptr_t data)
47{

--- 40 unchanged lines hidden ---