1 2 /* 3 * Copyright (C) NGINX, Inc. 4 */ 5 6 #ifndef _NXT_UNIT_RESPONSE_H_INCLUDED_ 7 #define _NXT_UNIT_RESPONSE_H_INCLUDED_ 8 9 10 #include <inttypes.h> 11 12 #include "nxt_unit_sptr.h" 13 #include "nxt_unit_field.h" 14 15 struct nxt_unit_response_s { 16 uint64_t content_length; 17 uint32_t fields_count; 18 uint32_t piggyback_content_length; 19 uint16_t status; 20 21 nxt_unit_sptr_t piggyback_content; 22 23 nxt_unit_field_t fields[]; 24 }; 25 26 27 #endif /* _NXT_UNIT_RESPONSE_H_INCLUDED_ */ 28