Deleted Added
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)
38{
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 ---