summaryrefslogtreecommitdiff
path: root/cli/http_util.rs
AgeCommit message (Collapse)Author
2022-03-23chore: remove all `pub(crate)`s from the cli crate (#14083)David Sherret
2022-03-15disable flakes (#13962)Ryan Dahl
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2021-12-21feat(lsp): supply accept header when fetching registry config (#13159)Kitson Kelly
Closes #13153
2021-12-09feat(lsp): registry suggestion cache respects cache headers (#13010)Kitson Kelly
Fixes #9931
2021-12-08fix: upgrade swc fixing many bundling and `--no-check` bugs (#13025)David Sherret
2021-12-01refactor: cli doesn't need to depend on deno_tls (#12952)Ryan Dahl
also move create_http_client to deno_fetch
2021-11-09feat(cli): support React 17 JSX transforms (#12631)Kitson Kelly
Closes #8440
2021-09-30feat(tls): custom in memory CA certificates (#12219)Luca Casonato
This adds support for using in memory CA certificates for `Deno.startTLS`, `Deno.connectTLS` and `Deno.createHttpClient`. `certFile` is deprecated in `startTls` and `connectTls`, and removed from `Deno.createHttpClient`.
2021-08-25feat(fetch): mTLS client certificates for fetch() (#11721)Sean Michael Wykes
This commit adds support for specifying client certificates when using fetch, by means of `Deno.createHttpClient`.
2021-08-11chore: move test files to testdata directory (#11601)David Sherret
2021-08-09chore: remove windows-only compiler warning in http_util.rs (#11623)David Sherret
2021-08-09feat: Add --unsafely-treat-insecure-origin-as-secure flag to disable SSL ↵TheAifam5
verification (#11324) This commit adds "--unsafely-treat-insecure-origin-as-secure" flag that allows to disable SSL verification for all domains, or specific domains if they were passed as an argument to the flag. Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-08-07feat(tls): Optionally support loading native certs (#11491)Justin Chase
This commit adds "DENO_TLS_CA_STORE" env variable to support optionally loading certificates from the users local certificate store. This will allow them to successfully connect via tls with corporate and self signed certs provided they have them installed in their keystore. It also allows them to deal with revoked certs by simply updating their keystore without having to upgrade Deno. Currently supported values are "mozilla", "system" or empty value.
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