- 16 Jul, 2018 1 commit
-
-
Kenton Varda authored
Alas, this means we can't use sprintf() anymore. Ugh.
-
- 14 Jul, 2018 2 commits
-
-
Kenton Varda authored
This is safer for signal handlers.
-
Kenton Varda authored
This is useful especially in signal handlers where malloc() is potentially unsafe.
-
- 30 Jun, 2018 3 commits
-
-
Kenton Varda authored
fix const-correctness on AnyPointer equality checks
-
Nils Fenner authored
-
Nils Fenner authored
-
- 25 Jun, 2018 2 commits
-
-
Kenton Varda authored
Log unknown Transfer-Encoding values in kj-http
-
Harris Hancock authored
Printf debugging at its finest.
-
- 24 Jun, 2018 2 commits
-
-
Kenton Varda authored
Allow .cmd/.bat files as compiler plugins on Windows.
-
Kenton Varda authored
Fixes #487 Fixes #695
-
- 21 Jun, 2018 1 commit
-
-
Kenton Varda authored
Fix handling of disconnect during WebSocket::pumpTo().
-
- 20 Jun, 2018 1 commit
-
-
Kenton Varda authored
Before this change, if *either* the `from` or the `to` end of the pump threw a DISCONNECTED exception, we'd then try to call `to.disconnect()`. But if the exception had been thrown from `to` in the first place, then this would throw again, this time complaining about a previous write not having completed. But the whole point was always to propagate errors from the *receiving* end to the sending end. An error on the sending end should just propagate up the stack.
-
- 13 Jun, 2018 6 commits
-
-
Kenton Varda authored
Add GzipAsyncOutputStream::Decompress and ::flush
-
Ingvar Stepanyan authored
-
Ingvar Stepanyan authored
-
Ingvar Stepanyan authored
Move generic gzip output operations to private helper for easier sharing of capabilities between GzipOutputStream and GzipAsyncOutputStream.
-
Ingvar Stepanyan authored
- Makes it possible to decompress data granularly via push-based API. - Adds ability to flush output at an arbitrary point. - Removes manual `ended` check as zlib checks it for us.
-
Ingvar Stepanyan authored
Contents of kj-gzip are guarded by KJ_HAS_ZLIB, but the library itself should be still added unconditionally to non-CAPNP_LITE build for tests to link properly.
-
- 12 Jun, 2018 2 commits
-
-
Kenton Varda authored
Add limit to readAllBytes()/readAllText()
-
Harris Hancock authored
Reading an unbounded amount of data from a stream is a potential DoS vector. To manage this risk, readAllText() and readAllBytes() now accept a `limit` parameter. For source backwards-compatibility, this limit defaults to kj::maxValue.
-
- 11 Jun, 2018 2 commits
-
-
Kenton Varda authored
Fix a typo
-
Ian Denhardt authored
s/starp/strap/
-
- 10 Jun, 2018 1 commit
-
-
Kenton Varda authored
Fix chunked body gather-write test.
-
- 09 Jun, 2018 1 commit
-
-
Kenton Varda authored
The braced array literals seem to be constructed as temporaries. The test passes in debug builds, but in optimized builds, the arrays have been overwritten by the time they are used.
-
- 08 Jun, 2018 1 commit
-
-
Kenton Varda authored
Chunked body fixes in kj-http
-
- 07 Jun, 2018 3 commits
-
-
Harris Hancock authored
-
Harris Hancock authored
-
Harris Hancock authored
The gather-write and tryPumpFrom() member functions weren't encoding their chunk sizes in hex, and the gather-write case had an off-by-n error building the body data pieces.
-
- 05 Jun, 2018 1 commit
-
-
Kenton Varda authored
Allow hash signs in path and query components in kj::Url request contexts
-
- 04 Jun, 2018 6 commits
-
-
Harris Hancock authored
Occasionally servers processing HTTP requests will see URLs in the wild which have unescaped hash signs in path and query components. This change allows kj::Url to parse such URLs in the Url::HTTP_REQUEST and Url::HTTP_PROXY_REQUEST contexts.
-
Kenton Varda authored
Add sychronous gzip stream implementations.
-
Kenton Varda authored
I was shocked to find that there was no good way to represent a multi-line literal currently. This implements C-style literals, where multiple consecutive string literals are concatenated.
-
Kenton Varda authored
-
Kenton Varda authored
Similar methods already exist on AsyncInputStream.
-
Kenton Varda authored
Really actually fix HttpServer::drain().
-
- 02 Jun, 2018 1 commit
-
-
Kenton Varda authored
It turns out I was testing it wrong, and it still doesn't work. :(
-
- 30 May, 2018 2 commits
-
-
Kenton Varda authored
Fix regressions in HTTP drain.
-
Kenton Varda authored
-
- 24 May, 2018 2 commits
-
-
Kenton Varda authored
Rewrite JSON decoding
-
Ingvar Stepanyan authored
-