summaryrefslogtreecommitdiff
path: root/js/fetch.ts
AgeCommit message (Collapse)Author
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl
2019-09-07fetch: implement bodyUsed (#2877)Yoshiya Hinosawa
2019-09-02Refactor snapshot build (#2825)Ryan Dahl
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
2019-09-02ops/fetch: add statusText (#2851)Yoshiya Hinosawa
2019-08-26bring back json ops (#2815)Bartek Iwańczuk
2019-08-24Revert json ops (#2814)Ryan Dahl
* Revert "port more ops to JSON (#2809)" This reverts commit 137f33733d365026903d40e7cde6e34ac6c36dcf. * Revert "port ops to JSON: compiler, errors, fetch, files (#2804)" This reverts commit 79f82cf10ed1dbf91346994250d7311a4d74377a. * Revert "Port rest of os ops to JSON (#2802)" This reverts commit 5b2baa5c990fbeae747e952c5dcd7a5369e950b1.
2019-08-24port ops to JSON: compiler, errors, fetch, files (#2804)Bartek Iwańczuk
2019-08-21Organize dispatch a bit (#2796)Ryan Dahl
Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.
2019-08-16fix: set response.url (#2782)Yoshiya Hinosawa
2019-07-06io: change Reader interface (#2591)Yoshiya Hinosawa
Instead of returning { nread: number, eof: bool }, read() returns EOF | number.
2019-06-24feat: fetch() now handles redirects (#2561)Long(Tony) Lian
2019-06-22fetch: make body async iterable (#2563)Yoshiya Hinosawa
2019-06-13expose window.Response (#2515)Bartek Iwańczuk
2019-05-31use body when Request instance is passed to fetch (fixes #2433) (#2435)Kurt Mackey
2019-05-01Add Request global constructor (#2253)Kurt Mackey
2019-04-21Fix eslint warnings (#2151)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
2019-04-07use flatbuffer create functions to add fields (#2046)Jonathon Orsi
2019-03-30Move //libdeno to //core/libdeno (#2015)Ryan Dahl
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
2019-03-09Migrate from tslint to eslint for linting (#1905)Kitson Kelly
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2019-01-03Support more fetch init body types (#1449)Kevin (Kun) "Kassimo" Qian
2018-12-21Implement `Body.formData` for fetch (#1393)Kevin (Kun) "Kassimo" Qian
2018-12-06Use alternate TextEncoder/TextDecoder implementation (#1281)Kitson Kelly
This is faster and smaller.
2018-11-16Support uploading data from fetch()Ryan Dahl
Does not yet support streaming, only strings and TypedArrays for now.
2018-11-14Support request method and headers in fetch() (#1188)Ryan Dahl
Adds a general HttpHeader flatbuffer message for serializing requests and responses.
2018-11-13Support streaming response bodies from fetch()Ryan Dahl
Also Buffer.readFrom in fetch() to buffer response.
2018-11-02Move fetch headers into its own file.Ryan Dahl
2018-10-30Rename FetchReq op to Fetch.Ryan Dahl
2018-10-23Make Headers more idiomatic (#1062)Kitson Kelly
2018-10-21Implemente clone for FetchResponse (#1054)ztplz
2018-10-20Format.Ryan Dahl
2018-10-19 Make fetch header compliant with the current spec (#1019)ztplz
2018-10-17Optimization: Reuse ArrayBuffer during serialization.Ryan Dahl
2018-10-14Align JSDoc to style guide.Kitson Kelly
2018-10-07Updates to js to clean up default libraryKitson Kelly
2018-10-04Rename fbs to msg.Ryan Dahl
2018-10-04Rename flatbuffer base.msg to base.innerRyan Dahl
This better disambiguates with the msg_generated.ts module, which in JS we call "fbs", but would be better called "msg".
2018-09-30Improve fetch headers (#853)ztplz
2018-09-14Make fetch.blob() workParsa Ghadimi
2018-09-14Rename fetch_types.d.ts to dom_types.d.tsParsa Ghadimi
2018-09-12Add support for fetch() headers (#727)qti3e
2018-09-10fbs_util.ts -> dispatch.tsRyan Dahl
And send() -> sendSync()
2018-09-09Remove namespace from src/msg.fbsRyan Dahl
2018-09-09Map promises onto futures.Ryan Dahl
Refactors handlers.rs The idea is that all Deno "ops" (aka bindings) should map onto a Rust Future. By setting the "sync" flag in the Base message users can determine if the future is executed immediately or put on the event loop. In the case of async futures, a promise is automatically created. Errors are automatically forwarded and raised. TODO: - The file system ops in src/handler.rs are not using the thread pool yet. This will be done in the future using tokio_threadpool::blocking. That is, if you try to call them asynchronously, you will get a promise and it will act asynchronous, but currently it will be blocking. - Handlers in src/handler.rs returned boxed futures. This was to make it easy while developing. We should try to remove this allocation.
2018-09-06Check allow-net in fetchParsa Ghadimi
2018-08-31Refactor libdeno.send() code to reduce boilerplate.Ryan Dahl
Also removes assignCmdId as it's currently unused.
2018-08-25Prevent circular imports in ts code (#576)Francesco Borzì
2018-08-23fmtRyan Dahl
2018-08-20Fix TS errors in fetch.tsRyan Dahl
2018-08-20First pass at fetch()Ryan Dahl
With help from Thomas Ghysels <info@thomasg.be>