Lines Matching defs:httpread
50 struct httpread { struct
53 void (*cb)(struct httpread *handle, void *cookie, argument
65 enum httpread_hdr_type hdr_type; argument
66 int version; /* 1 if we've seen 1.1 */
67 int reply_code; /* for type REPLY, e.g. 200 for HTTP/1.1 200 OK */
68 int got_content_length; /* true if we know content length for sure */
69 int content_length; /* body length, iff got_content_length */
70 int chunked; /* nonzero for chunked data */
71 char *uri;
73 int got_body; /* nonzero when body is finalized */
74 char *body;
75 int body_nbytes;
76 int body_alloc_nbytes; /* amount allocated */
78 int got_file; /* here when we are done */
81 int in_chunk_data; /* 0=in/at header, 1=in the data or tail*/
82 int chunk_start; /* offset in body of chunk hdr or data */
83 int chunk_size; /* data of chunk (not hdr or ending CRLF)*/
84 int in_trailer; /* in header fields after data (chunked only)*/
85 enum trailer_state {
90 } trailer_state;