nxt_http.h (683:5c7dd85fabd5) nxt_http.h (703:2d536dde84d2)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_HTTP_H_INCLUDED_
8#define _NXT_HTTP_H_INCLUDED_

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

71typedef union {
72 void *any;
73 nxt_h1proto_t *h1;
74} nxt_http_proto_t;
75
76
77#define nxt_http_field_name_set(_field, _name) \
78 do { \
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#ifndef _NXT_HTTP_H_INCLUDED_
8#define _NXT_HTTP_H_INCLUDED_

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

71typedef union {
72 void *any;
73 nxt_h1proto_t *h1;
74} nxt_http_proto_t;
75
76
77#define nxt_http_field_name_set(_field, _name) \
78 do { \
79 (_field)->name_length = sizeof(_name) - 1; \
79 (_field)->name_length = nxt_length(_name); \
80 (_field)->name = (u_char *) _name; \
81 } while (0)
82
83
84#define nxt_http_field_set(_field, _name, _value) \
85 do { \
80 (_field)->name = (u_char *) _name; \
81 } while (0)
82
83
84#define nxt_http_field_set(_field, _name, _value) \
85 do { \
86 (_field)->name_length = sizeof(_name) - 1; \
87 (_field)->value_length = sizeof(_value) - 1; \
86 (_field)->name_length = nxt_length(_name); \
87 (_field)->value_length = nxt_length(_value); \
88 (_field)->name = (u_char *) _name; \
89 (_field)->value = (u_char *) _value; \
90 } while (0)
91
92
93typedef struct {
94 nxt_list_t *fields;
95 nxt_http_field_t *date;

--- 102 unchanged lines hidden ---
88 (_field)->name = (u_char *) _name; \
89 (_field)->value = (u_char *) _value; \
90 } while (0)
91
92
93typedef struct {
94 nxt_list_t *fields;
95 nxt_http_field_t *date;

--- 102 unchanged lines hidden ---