summaryrefslogtreecommitdiff
path: root/std/http/racing_server.ts
AgeCommit message (Collapse)Author
2020-02-24fix: [http] Consume unread body and trailers before reading next request (#3990)Yusuke Sakurai
- Added `ServerRequest.finalize()`: consuming all unread body stream and trailers. - This is cleanup method for reading next request from same keep-alive connection. - Needed when handler didn't consume all body and trailers even after responding. - refactor: `ServerRequest._bodyStream()`, `ServerRequestBody` are removed. - Now using `bodyReader()` and `chunkedBodyReader()` instead. - fix: Trailers should only be read `transfer-encoding` is `chunked` and `trailer` header is set and its value is valid. - fix: use `Headers.append()` on reading trailers. - fix: delete `trailer` field from headers after reading trailers. - reorg: Several functions related to IO are moved into `http/io.ts`
2020-01-02Happy new year! (#3578)Ry Dahl
2019-10-28Use top-level for-await in various places (#3217)Andy Hayden
2019-10-09Move everything into std subdirRyan Dahl