summaryrefslogtreecommitdiff
path: root/js/fetch_test.ts
AgeCommit message (Collapse)Author
2019-10-04Merge deno_cli_snapshots into deno_cli (#3064)Ryan Dahl
2019-09-20dial/listen API change (#3000)Ryan Dahl
Previously: dial("tcp", "deno.land:80") Now: dial({ hostname: "deno.land", port: 80, transport: "tcp" }) Similarly with listen().
2019-09-11fix: panic during fetch (#2925)Bartek Iwańczuk
2019-09-11feat: Set user agent for http client (#2916)Bartek Iwańczuk
2019-09-07fetch: implement bodyUsed (#2877)Yoshiya Hinosawa
2019-09-02ops/fetch: add statusText (#2851)Yoshiya Hinosawa
2019-08-30Use 'reqwest' to implement HTTP client (#2822)Bartek Iwańczuk
Closes #2720
2019-08-16fix: set response.url (#2782)Yoshiya Hinosawa
2019-06-24feat: fetch() now handles redirects (#2561)Long(Tony) Lian
2019-06-22fetch: make body async iterable (#2563)Yoshiya Hinosawa
2019-05-31use body when Request instance is passed to fetch (fixes #2433) (#2435)Kurt Mackey
2019-05-02Re-enable networking unit tests (#2268)Ryan Dahl
The following tests were commented out in order to get this to go green : - bodyMultipartFormData - bodyURLEncodedFormData - fetchRequestInitStringBody - netConcurrentAccept - netListenAsyncIterator
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-03-06Upgrade deno_std (#1892)Ryan Dahl
A major API change was that asserts are imported from testing/asserts.ts now rather than testing/mod.ts and assertEqual as renamed to assertEquals to conform to what is most common in JavaScript.
2019-02-12Add Deno global namespace (#1748)Kitson Kelly
Resolves #1705 This PR adds the Deno APIs as a global namespace named `Deno`. For backwards compatibility, the ability to `import * from "deno"` is preserved. I have tried to convert every test and internal code the references the module to use the namespace instead, but because I didn't break compatibility I am not sure. On the REPL, `deno` no longer exists, replaced only with `Deno` to align with the regular runtime. The runtime type library includes both the namespace and module. This means it duplicates the whole type information. When we remove the functionality from the runtime, it will be a one line change to the library generator to remove the module definition from the type library. I marked a `TODO` in a couple places where to remove the `"deno"` module, but there are additional places I know I didn't mark.
2019-01-21chore: update license lines (#1557)Yoshiya Hinosawa
2019-01-17Revert "fix: fix fetch tests (#1535)"Ryan Dahl
This reverts commit dd081655280243ad6c1e6b99599424f21c3aa456. These tests are still flaky: https://travis-ci.com/denoland/deno/jobs/171240240 https://travis-ci.com/denoland/deno/jobs/170775382
2019-01-16fix: fix fetch tests (#1535)Yoshiya Hinosawa
2019-01-03Support more fetch init body types (#1449)Kevin (Kun) "Kassimo" Qian
2018-12-23Remove support for extensionless import (#1396)Ryan Dahl
2018-12-21Implement `Body.formData` for fetch (#1393)Kevin (Kun) "Kassimo" Qian
2018-12-21Avoid fetch segfault on empty Uri (#1394)Kevin (Kun) "Kassimo" Qian
2018-11-27Disable flaky fetch tests.Ryan Dahl
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-02Move fetch headers into its own file.Ryan Dahl
2018-10-23Make Headers more idiomatic (#1062)Kitson Kelly
2018-10-21Implemente clone for FetchResponse (#1054)ztplz
2018-10-19 Make fetch header compliant with the current spec (#1019)ztplz
2018-09-30FormatRyan Dahl
2018-09-30Improve fetch headers (#853)ztplz
2018-09-14Make fetch.blob() workParsa Ghadimi
2018-09-12Add support for fetch() headers (#727)qti3e
2018-09-09Expose deno.ErrorKindRyan Dahl
Originally we planned to have a JS class for each error code. But it seems better to just have a single DenoError class with a "kind" property. One nice thing about using an enum instead of classes for errors is that switch() can be used during error handling instead of a bunch of instanceof branches.
2018-09-06Check allow-net in fetchParsa Ghadimi
2018-09-01Minor code refactoringShinDarth
2018-08-30Reorganize js/unit_tests.tsRyan Dahl