summaryrefslogtreecommitdiff
path: root/cli/js/metrics.ts
diff options
context:
space:
mode:
authorYusuke Sakurai <kerokerokerop@gmail.com>2020-02-25 12:49:39 +0900
committerGitHub <noreply@github.com>2020-02-24 22:49:39 -0500
commit22f88b9f37b7e233fd4f15b73d5a2096224e56dc (patch)
treea623c34e8af0e98ed8d56d875412688cab79634b /cli/js/metrics.ts
parent5c1ab080cd8989c3ac2b3a8c919fe14052feac79 (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 'cli/js/metrics.ts')
0 files changed, 0 insertions, 0 deletions