| 358 return 0; |
358 return 0; |
| 359 } |
359 } |
| 360 |
360 |
| 361 WSBool httpstream_eof(IOStream *st) { |
361 WSBool httpstream_eof(IOStream *st) { |
| 362 HttpStream *http = (HttpStream*)st; |
362 HttpStream *http = (HttpStream*)st; |
| 363 return http->read_eof; |
363 return http->read_eof || http->read == http->max_read; |
| 364 } |
364 } |
| 365 |
365 |
| 366 int64_t httpstream_written(IOStream *st) { |
366 int64_t httpstream_written(IOStream *st) { |
| 367 HttpStream *http = (HttpStream*)st; |
367 HttpStream *http = (HttpStream*)st; |
| 368 return http->written; |
368 return http->written; |