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