1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/ext/fetch
Matt Mastracci e190acbfa8
refactor(ext/net): extract TLS key and certificate from interfaces (#23296)
Removes the certificate options from all the interfaces and replaces
them with a new `TlsCertifiedKeyOptions`. This allows us to centralize
the documentation for TLS key management for both client and server, and
will allow us to add key object support in the future.

Also adds an option `keyFormat` field to the cert/key that must be
omitted or set to `pem`. This will allow us to load other format keys in
the future `der`, `pfx`, etc.

In a future PR, we will add a way to load a certified key object, and we
will add another option to `TlsCertifiedKeyOptions` like so:

```ts
export interface TlsCertifiedKeyOptions =
    | TlsCertifiedKeyPem
    | TlsCertifiedKeyFromFile
    | TlsCertifiedKeyConnectTls
    | { key: Deno.CertifiedKey }
```
2024-04-09 16:23:22 -06:00
..
20_headers.js refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
21_formdata.js chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
22_body.js refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07:00
22_http_client.js refactor(ext/net): extract TLS key and certificate from interfaces (#23296) 2024-04-09 16:23:22 -06:00
23_request.js chore: replace 'call' to 'execute' in error messages (#22579) 2024-03-10 02:23:14 +00:00
23_response.js chore: replace 'call' to 'execute' in error messages (#22579) 2024-03-10 02:23:14 +00:00
26_fetch.js fix(ext/fetch): make EventSource more robust (#22493) 2024-03-24 18:49:01 +01:00
27_eventsource.js fix(ext/fetch): do not truncate field value in EventSource (#22368) 2024-03-25 07:31:13 -07:00
Cargo.toml chore: forward v1.42.1 release commit to main (#23162) 2024-04-01 13:35:46 +05:30
fs_fetch_handler.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
internal.d.ts chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
lib.deno_fetch.d.ts fix: add EventSource typings (#21908) 2024-01-12 13:28:54 +00:00
lib.rs refactor(ext/tls): use cppgc to deduplicate the tls key loading code (#23289) 2024-04-08 15:01:02 -06:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00

deno_fetch

This crate implements the Fetch API.

Spec: https://fetch.spec.whatwg.org/