Lines Matching defs:httpread
60 struct httpread { struct
63 void (*cb)(struct httpread *handle, void *cookie, argument
75 enum httpread_hdr_type hdr_type; argument
76 int version; /* 1 if we've seen 1.1 */
77 int reply_code; /* for type REPLY, e.g. 200 for HTTP/1.1 200 OK */
78 int got_content_length; /* true if we know content length for sure */
79 int content_length; /* body length, iff got_content_length */
80 int chunked; /* nonzero for chunked data */
81 char *uri;
83 int got_body; /* nonzero when body is finalized */
84 char *body;
85 int body_nbytes;
86 int body_alloc_nbytes; /* amount allocated */
88 int got_file; /* here when we are done */
91 int in_chunk_data; /* 0=in/at header, 1=in the data or tail*/
92 int chunk_start; /* offset in body of chunk hdr or data */
93 int chunk_size; /* data of chunk (not hdr or ending CRLF)*/
94 int in_trailer; /* in header fields after data (chunked only)*/
95 enum trailer_state {
100 } trailer_state;