129 /* |
129 /* |
130 * buffer used only for parsing chunk headers |
130 * buffer used only for parsing chunk headers |
131 */ |
131 */ |
132 char chunk_buf[HTTP_STREAM_CBUF_SIZE]; |
132 char chunk_buf[HTTP_STREAM_CBUF_SIZE]; |
133 /* |
133 /* |
134 * after the chunk header is parsed, the content of chunk_buf |
134 * chunked transfer encoding for write enabled? |
135 * will be moved to remaining_buf |
|
136 */ |
135 */ |
137 char remaining_buf[HTTP_STREAM_CBUF_SIZE]; |
136 WSBool chunked_enc; |
138 /* |
137 /* |
139 * number of bytes currently stored in remaining_buf |
138 * end of file indicator (read) |
140 */ |
139 */ |
141 int remaining_len; |
|
142 /* |
|
143 * |
|
144 */ |
|
145 int remaining_pos; |
|
146 WSBool chunked_enc; |
|
147 WSBool read_eof; |
140 WSBool read_eof; |
148 }; |
141 }; |
149 |
142 |
150 typedef struct SSLStream { |
143 typedef struct SSLStream { |
151 IOStream st; |
144 IOStream st; |