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_HOST = 0xE6EB, 16 NXT_UNIT_HASH_CONTENT_LENGTH = 0x1EA0, 17 NXT_UNIT_HASH_CONTENT_TYPE = 0x5F7D, 18 NXT_UNIT_HASH_COOKIE = 0x23F2, 19 }; 20 21 22 /* Name and Value field aka HTTP header. */ 23 struct nxt_unit_field_s { 24 uint16_t hash; 25 uint8_t skip; 26 uint8_t name_length; 27 uint32_t value_length; 28 29 nxt_unit_sptr_t name; 30 nxt_unit_sptr_t value; 31 }; 32 33 34 #endif /* _NXT_UNIT_FIELD_H_INCLUDED_ */ 35