aboutsummaryrefslogtreecommitdiff
path: root/src/http_client_async.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-01[fetch] Treat 302 like 303Gravatar Jarred Sumner 1-2/+17
2022-12-01[fetch] Implement `redirect: "manual"`Gravatar Jarred Sumner 1-1/+8
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-6/+6
2022-11-20fix protocol relative urls againGravatar Jarred Sumner 1-0/+24
2022-11-20TypoGravatar Jarred Sumner 1-1/+1
2022-11-20[fetch] Add optimization for chunked encodingGravatar Jarred Sumner 1-7/+91
2022-11-19[fetch] Fix sporadic data corruption bug in HTTP client and add fast pathGravatar Jarred Sumner 1-124/+133
- This removes memory pooling from the HTTP client which sometimes caused invalid memory to be written to the response body. - This adds a fast path for small HTTP/HTTPS responses that makes it a single memory allocation for the response body, instead of copying & allocating a temporary buffer cc @Electroid
2022-11-19[fetch] Fix bug with redirecting to a protocol-relative URLGravatar Jarred Sumner 1-5/+21
2022-11-19[fetch] Fix bug with redirects losing the port numberGravatar Jarred Sumner 1-7/+15
2022-11-14switch default encoding order (#1510)Gravatar Dylan Conway 1-1/+1
2022-11-12Fix memory leak in gzip pool + add test for gzip'd dataGravatar Jarred SUmner 1-10/+5
2022-11-12Redo how we poll pipes (#1496)Gravatar Jarred Sumner 1-0/+5
* Fix pipe * Handle unregistered * Fix failing test
2022-11-09Fix #1354Gravatar Jarred Sumner 1-1/+1
2022-11-09Re-enable workaround for 127.0.0.01Gravatar Jarred Sumner 1-5/+5
2022-10-25TCP & TLS Socket API (#1374)Gravatar Jarred Sumner 1-0/+1
* TCP Socket API * Wip * Add snippet for StringDecoder * Rename `close` to `stop`, replace `close` with `end` * Add a tcp echo server test * Some docs * Update README.md * Fix build * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-15Simplify the code that reads HTTP client request bodiesGravatar Jarred Sumner 1-23/+22
2022-10-08Fix https://github.com/oven-sh/bun/issues/1263Gravatar Jarred Sumner 1-2/+23
What happened: when moving to uSockets for the http client, I forgot to call `SSL_set_tlsext_host_name` and uSockets apparently doesn't do that
2022-10-02Reduce memory usage of HTTP requests by 8 KBGravatar Jarred Sumner 1-20/+49
2022-09-30Verbose flagGravatar Jarred Sumner 1-1/+17
2022-09-20meant to include this in the previous commitGravatar Jarred Sumner 1-1/+1
2022-09-19Fix larger bodiesGravatar Jarred Sumner 1-0/+6
2022-09-18Fix broken sending http bodyGravatar Jarred Sumner 1-1/+3
2022-09-18Update http_client_async.zigGravatar Jarred Sumner 1-6/+12
2022-09-18Add a way to disable timeout and keepaliveGravatar Jarred Sumner 1-7/+17
2022-09-17Handle missing 0\r\n chunk in HTTP clientGravatar Jarred Sumner 1-1/+17
2022-09-17Update & configure SSL a littleGravatar Jarred Sumner 1-2/+17
2022-09-16Make `fetch` throw a `SystemError` on rejectGravatar Jarred Sumner 1-0/+1
2022-09-16Fix issue with chunked transfer encodingGravatar Jarred Sumner 1-32/+8
2022-09-16Make new HTTP client more stableGravatar Jarred Sumner 1-199/+265
2022-09-13Fix Linux 200ms http client delayGravatar Jarred Sumner 1-1/+1
https://man7.org/linux/man-pages/man2/send.2.html See the section on MSG_MORE
2022-09-11Hardcode localhost on macOSGravatar Jarred Sumner 1-1/+7
2022-09-11New HTTP client (#1231)Gravatar Jarred Sumner 1-663/+1161
* wip * It mostly works! * Support `bun install` * Support `bun create` * Support chunked transfer encoding * Handle Keep Alive when redirecting to a different domain Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-29Fixes https://github.com/oven-sh/bun/issues/1127Gravatar Jarred Sumner 1-1/+3
2022-08-28More reliable macOS event loop (#1166)Gravatar Jarred Sumner 1-9/+3
* More reliable macOS event loop * Reduce CPU usage of idling * Add another implementation * Add benchmark Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-17Update http_client_async.zigGravatar Jarred Sumner 1-1/+1
2022-08-17New Zig <> C++ bindings generator. +20% faster HTTP serverGravatar Jarred Sumner 1-12/+16
2022-08-13Improve event loop reliability on LinuxGravatar Jarred SUmner 1-12/+25
2022-08-07Improve memlock limit errorGravatar Jarred Sumner 1-0/+29
2022-07-22Mention WSL version requirementGravatar Jarred Sumner 1-0/+2
2022-07-10Remove unnecessary `Output.flush`s before `Global.exit` and `Global.crash` ↵Gravatar r00ster91 1-2/+1
(#535) * fix: add missing newline * refactor: std.process.exit -> Global.exit * fix: std.os.abort -> Global.exit I'm not sure about this one. Please verify. * cleanup: remove unnecessary `Output.flush`s
2022-07-07Fix copyGravatar Jarred Sumner 1-1/+1
2022-07-06Improve error message for outdated linux kernelGravatar Jarred Sumner 1-1/+28
2022-06-29Remove incorrect assertionGravatar Jarred Sumner 1-1/+0
2022-06-27[fetch] Fix data corruption bugGravatar Jarred Sumner 1-48/+37
2022-06-22this assertion isn't good enoughGravatar Jarred Sumner 1-1/+1
2022-05-16`bun:sqlite` (#167)Gravatar Jarred Sumner 1-1/+1
* :scissors: * Add the slow version * draw the rest of the owl * Fix crash when allocating lots of memory * [Bun.Transipiler] Support passing objects * [JS Parser] Support passing objects to macros via Bun.Transpiler * Update JSSQLStatement.cpp * Embed SQLite * Add SQLite to Dockerfile * [sqlite] Add quick one-off queries without creating a whole object * [sqlite] Add `columnsCount`, rename raw() to `values()`, remove `rebind` * Implement `bun:sqlite` * return null * Fix updating query * Update bun.d.ts * more tests * Support variadic arguments, write tests and add types * Update sqlite.d.ts * Update sqlite.d.ts * latest * Implement `Database.loadExtension` and `Database.setCustomSQLite` * Support `require.resolve` * [napi] Improve string performance * [bun.js] Support some of `node:module` * another test * [sqlite] Support serialize & deserialize * [`bun:ffi`] Implement `CFunction` and `linkSymbols` * [bun.js] Fix crash in `Buffer.from` * Update sqlite.test.js * Document linkSymbols * docs * Update README.md
2022-04-11[bun.js] Add a `Server.stop` functionGravatar Jarred Sumner 1-0/+1
2022-04-03Omit the `Content-Encoding` header when it was auto decompressedGravatar Jarred Sumner 1-0/+12
2022-04-03Don't track gzip timing unless verbose modeGravatar Jarred Sumner 1-6/+22
2022-03-20the events, they loopGravatar Jarred Sumner 1-1/+1