xref: /unit/src/nxt_unit_field.h (revision 967:d693ed6d0209)
1 
2 /*
3  * Copyright (C) NGINX, Inc.
4  */
5 
6 #ifndef _NXT_UNIT_FIELD_H_INCLUDED_
7 #define _NXT_UNIT_FIELD_H_INCLUDED_
8 
9 
10 #include <inttypes.h>
11 
12 #include "nxt_unit_sptr.h"
13 
14 enum {
15     NXT_UNIT_HASH_CONTENT_LENGTH = 0x1EA0,
16     NXT_UNIT_HASH_CONTENT_TYPE   = 0x5F7D,
17     NXT_UNIT_HASH_COOKIE         = 0x23F2,
18 };
19 
20 
21 /* Name and Value field aka HTTP header. */
22 struct nxt_unit_field_s {
23     uint16_t              hash;
24     uint8_t               skip;
25     uint8_t               name_length;
26     uint32_t              value_length;
27 
28     nxt_unit_sptr_t       name;
29     nxt_unit_sptr_t       value;
30 };
31 
32 
33 #endif /* _NXT_UNIT_FIELD_H_INCLUDED_ */
34