summaryrefslogtreecommitdiff
path: root/cli/http_util.rs
AgeCommit message (Collapse)Author
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-02-16feat(cli): support auth tokens for accessing private modules (#9508)Kitson Kelly
Closes #5239
2021-02-03fix: improve http client builder error message (#9380)Ben Noordhuis
Include the lower-level error message in the generic error message. No test because I can't actually make it fail by passing it bad PEM. I checked and `reqwest::Certificate::from_pem()` always returns `Ok()`. Fixes #9364.
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2021-01-08feat: denort binary (#9041)Luca Casonato
This commit adds new binary target called "denort". It is a "lite" version of "deno" binary that can only execute code embedded inside the binary itself. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-01-05feat(cli/standalone): support runtime flags for deno compile (#8738)Nayeem Rahman
2021-01-04BREAKING(unstable): remove CreateHttpClientOptions.caFile (#8928)Mo
2020-12-15refactor: remove dead code (#8781)Bartek Iwańczuk
2020-12-13refactor: deno_runtime crate (#8640)Bartek Iwańczuk
This commit moves Deno JS runtime, ops, permissions and inspector implementation to new "deno_runtime" crate located in "runtime/" directory. Details in "runtime/README.md". Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-12-12refactor(cli): more options on Worker (#8724)Bartek Iwańczuk
2020-11-25add canary versioning (#8480)crowlKats
2020-10-12chore(cli): remove dead code (#7941)Kitson Kelly
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-18Use reqwest from deno_fetch export (#7562)Ryan Dahl
2020-09-16Re-export deno_core::url (#7525)Ryan Dahl
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-16Revert "fix(cli/http_utils): accept a single key-multiple values headers ↵Bartek Iwańczuk
(#7375)" (#7515) This reverts commit f5c84920c225579af9c249bdac4a59a046ef8683.
2020-09-15fix(cli/http_utils): accept a single key-multiple values headers (#7375)tokiedokie
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-06Move JSON ops to deno_core (#7336)Bert Belder
2020-09-04fix: Handle bad redirects more gracefully (#7342)Ryan Dahl
2020-08-26Remove some more unnecessary 'to_string()' calls (#7190)Bert Belder
2020-08-19Make Rc/Arc wrapper around State/GlobalState visible (#7104)Bert Belder
2020-08-10Remove unnecessary drop calls (#7007)Ryan Dahl
2020-07-04chore: port http_server.py to rust (#6364)Ryan Dahl
2020-06-29refactor: util functions take slices instead of heap values (#6547)Valentin Anger
2020-06-18chore(test): move testing utilities to test_util crate (#6360)Bartek Iwańczuk
2020-05-09Add support for X-Deno-Warning header (#5161)Ryan Dahl
2020-04-03clippy (#4618)Kitson Kelly
2020-03-16refactor: remove an unsafe and some boxing (#4398)Gurwinder Singh
2020-02-28http_cache: change .headers.json to .metadata.json (#4175)Ryan Dahl
Add original URL to metadata. This is so the VS Code Plugin can reverse look up the URL for cache entries. Ref #4069.
2020-02-25Remove _async from method names since _sync are gone (#4128)Ryan Dahl
2020-02-23refactor: use OpError instead of ErrBox for errors in ops (#4058)Bartek Iwańczuk
To better reflect changes in error types in JS from #3662 this PR changes default error type used in ops from "ErrBox" to "OpError". "OpError" is a type that can be sent over to JSON; it has all information needed to construct error in JavaScript. That made "GetErrorKind" trait useless and so it was removed altogether. To provide compatibility with previous use of "ErrBox" an implementation of "From<ErrBox> for OpError" was added, however, it is an escape hatch and ops implementors should strive to use "OpError" directly.
2020-02-23feat: support brotli compression for fetch API (#4082)EnokMan
2020-02-19refactor: rewrite HTTP cache for file fetcher (#4030)Bartek Iwańczuk
2020-02-17feat: add --cert flag for http client (#3972)geoFlux
2020-02-04Do not encode files loaded from network as utf8 (#3856)Tilman Roeder
2020-02-03Use tokio::test for some of cli's unit tests (#3868)Ryan Dahl
2020-01-26Improve support of type definitions (#3755)Kitson Kelly
2020-01-16perf: share http client in file fetcher (#3683)Bartek Iwańczuk
2020-01-15fix: process hangs when fetch called (#3657)Yusuke Sakurai
Reverts 011d485
2020-01-11Add gzip, brotli and ETag support for file fetcher (#3597)EnokMan
2020-01-05Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600)Ry Dahl
2020-01-02Happy new year! (#3578)Ry Dahl
2020-01-02fix typos (#3573)EnokMan
2020-01-01cleanup after tokio upgrade (#3571)Gurwinder Singh
tokio_util::run and tokio::run_on_current_thread should accept Future<Output=()> instead of Future<Output=Result<(), ()>>. Currently, all the passed futures have to add Ok(()) or futures::future::ok(()) unnecessarily to call this method.
2019-12-31refactor: move HttpBody to cli/http_util.rs (#3569)Bartek Iwańczuk
2019-12-30use shared HTTP client (#3563)Bartek Iwańczuk
This commit moves HTTP client to lazy_static. Effectively HTTP client is shared by whole Deno process and will reuse connections.
2019-12-30upgrade: Tokio 0.2 (#3418)Bartek Iwańczuk
2019-11-16Use futures 0.3 API (#3358)Bartek Iwańczuk