mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(unstable): fetch tunnel proxy
This commit is contained in:
parent
ebcb2fa294
commit
2e9daab3ea
10 changed files with 81 additions and 25 deletions
|
@ -224,6 +224,12 @@ impl ServerCertVerifier for NoServerNameVerification {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub enum TunnelKind {
|
||||
Agent,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, Clone)]
|
||||
#[serde(rename_all = "camelCase", tag = "transport")]
|
||||
pub enum Proxy {
|
||||
|
@ -243,6 +249,9 @@ pub enum Proxy {
|
|||
cid: u32,
|
||||
port: u32,
|
||||
},
|
||||
Tunnel {
|
||||
kind: TunnelKind,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Default, Debug, Clone)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue