diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-02-25 12:49:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 22:49:39 -0500 |
commit | 22f88b9f37b7e233fd4f15b73d5a2096224e56dc (patch) | |
tree | a623c34e8af0e98ed8d56d875412688cab79634b /deno_typescript/ops.rs | |
parent | 5c1ab080cd8989c3ac2b3a8c919fe14052feac79 (diff) |
fix: [http] Consume unread body and trailers before reading next request (#3990)
- 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`
Diffstat (limited to 'deno_typescript/ops.rs')
0 files changed, 0 insertions, 0 deletions