Transport

Overview

Location

  • Reference: Go.fx
  • Namespace: go.net.http
  • Platforms: Island

Implements

 

constructor

 

constructor

 

Transport()

 

init()

 

Sub New()

constructor (Transport)

 

constructor(value: Transport)

 

Transport(Transport value)

 

init(_ value: Transport)

 

Sub New(value As Transport)

Parameters:

  • value:

CancelRequest

 

method CancelRequest(req: Reference<Request>)

 

void CancelRequest(Reference<Request> req)

 

func CancelRequest(_ req: Reference<Request>)

 

func CancelRequest(req Reference<Request>)

 

Sub CancelRequest(req As Reference<Request>)

Parameters:

  • req:

Clone

 

method Clone: Reference<Transport>

 

Reference<Transport> Clone()

 

func Clone() -> Reference<Transport>

 

func Clone() Reference<Transport>

 

Function Clone() As Reference<Transport>

CloseIdleConnections

 

method CloseIdleConnections

 

void CloseIdleConnections()

 

func CloseIdleConnections()

 

func CloseIdleConnections()

 

Sub CloseIdleConnections()

Dial

 

var Dial: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>;

 

Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)> Dial

 

var Dial: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

Dial Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

FIELD Dial() As Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

DialContext

 

var DialContext: Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>;

 

Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)> DialContext

 

var DialContext: Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

DialContext Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

FIELD DialContext() As Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

DialTLS

 

var DialTLS: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>;

 

Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)> DialTLS

 

var DialTLS: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

DialTLS Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

FIELD DialTLS() As Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

DisableCompression

 

var DisableCompression: bool;

 

bool DisableCompression

 

var DisableCompression: bool

 

DisableCompression bool

 

FIELD DisableCompression() As bool

DisableKeepAlives

 

var DisableKeepAlives: bool;

 

bool DisableKeepAlives

 

var DisableKeepAlives: bool

 

DisableKeepAlives bool

 

FIELD DisableKeepAlives() As bool

ExpectContinueTimeout

 

var ExpectContinueTimeout: Duration;

 

Duration ExpectContinueTimeout

 

var ExpectContinueTimeout: Duration

 

ExpectContinueTimeout Duration

 

FIELD ExpectContinueTimeout() As Duration

ForceAttemptHTTP2

 

var ForceAttemptHTTP2: bool;

 

bool ForceAttemptHTTP2

 

var ForceAttemptHTTP2: bool

 

ForceAttemptHTTP2 bool

 

FIELD ForceAttemptHTTP2() As bool

IdleConnTimeout

 

var IdleConnTimeout: Duration;

 

Duration IdleConnTimeout

 

var IdleConnTimeout: Duration

 

IdleConnTimeout Duration

 

FIELD IdleConnTimeout() As Duration

MaxConnsPerHost

 

var MaxConnsPerHost: int;

 

int MaxConnsPerHost

 

var MaxConnsPerHost: int

 

MaxConnsPerHost int

 

FIELD MaxConnsPerHost() As int

MaxIdleConns

 

var MaxIdleConns: int;

 

int MaxIdleConns

 

var MaxIdleConns: int

 

MaxIdleConns int

 

FIELD MaxIdleConns() As int

MaxIdleConnsPerHost

 

var MaxIdleConnsPerHost: int;

 

int MaxIdleConnsPerHost

 

var MaxIdleConnsPerHost: int

 

MaxIdleConnsPerHost int

 

FIELD MaxIdleConnsPerHost() As int

MaxResponseHeaderBytes

 

var MaxResponseHeaderBytes: int64;

 

int64 MaxResponseHeaderBytes

 

var MaxResponseHeaderBytes: int64

 

MaxResponseHeaderBytes int64

 

FIELD MaxResponseHeaderBytes() As int64

Proxy

 

var Proxy: Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>;

 

Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)> Proxy

 

var Proxy: Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>

 

Proxy Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>

 

FIELD Proxy() As Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>

ProxyConnectHeader

 

var ProxyConnectHeader: Header;

 

Header ProxyConnectHeader

 

var ProxyConnectHeader: Header

 

ProxyConnectHeader Header

 

FIELD ProxyConnectHeader() As Header

ReadBufferSize

 

var ReadBufferSize: int;

 

int ReadBufferSize

 

var ReadBufferSize: int

 

ReadBufferSize int

 

FIELD ReadBufferSize() As int

RegisterProtocol

 

method RegisterProtocol(scheme: string; rt: RoundTripper)

 

void RegisterProtocol(string scheme, RoundTripper rt)

 

func RegisterProtocol(_ scheme: string, _ rt: RoundTripper)

 

func RegisterProtocol(scheme string, rt RoundTripper)

 

Sub RegisterProtocol(scheme As string, rt As RoundTripper)

Parameters:

  • scheme:
  • rt:

ResponseHeaderTimeout

 

var ResponseHeaderTimeout: Duration;

 

Duration ResponseHeaderTimeout

 

var ResponseHeaderTimeout: Duration

 

ResponseHeaderTimeout Duration

 

FIELD ResponseHeaderTimeout() As Duration

RoundTrip (Reference<Request>): tuple of (Response, error)

 

method RoundTrip(req: Reference<Request>): tuple of (Response, error)

 

(Response, error) RoundTrip(Reference<Request> req)

 

func RoundTrip(_ req: Reference<Request>) -> (Response, error)

 

func RoundTrip(req Reference<Request>) (Response, error)

 

Function RoundTrip(req As Reference<Request>) As Tuple (Of Response, error)

Parameters:

  • req:

RoundTrip (Reference<Request>): tuple of (Response, error)

 

method RoundTrip(req: Reference<Request>): tuple of (Response, error)

 

(Response, error) RoundTrip(Reference<Request> req)

 

func RoundTrip(_ req: Reference<Request>) -> (Response, error)

 

func RoundTrip(req Reference<Request>) (Response, error)

 

Function RoundTrip(req As Reference<Request>) As Tuple (Of Response, error)

Parameters:

  • req:

TLSClientConfig

 

var TLSClientConfig: Reference<Config>;

 

Reference<Config> TLSClientConfig

 

var TLSClientConfig: Reference<Config>

 

TLSClientConfig Reference<Config>

 

FIELD TLSClientConfig() As Reference<Config>

TLSHandshakeTimeout

 

var TLSHandshakeTimeout: Duration;

 

Duration TLSHandshakeTimeout

 

var TLSHandshakeTimeout: Duration

 

TLSHandshakeTimeout Duration

 

FIELD TLSHandshakeTimeout() As Duration

TLSNextProto

 

var TLSNextProto: Map<string, Func<string, Reference<Conn>, RoundTripper>>;

 

Map<string, Func<string, Reference<Conn>, RoundTripper>> TLSNextProto

 

var TLSNextProto: Map<string, Func<string, Reference<Conn>, RoundTripper>>

 

TLSNextProto Map<string, Func<string, Reference<Conn>, RoundTripper>>

 

FIELD TLSNextProto() As Map<string, Func<string, Reference<Conn>, RoundTripper>>

WriteBufferSize

 

var WriteBufferSize: int;

 

int WriteBufferSize

 

var WriteBufferSize: int

 

WriteBufferSize int

 

FIELD WriteBufferSize() As int

 

Dial

 

var Dial: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>;

 

Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)> Dial

 

var Dial: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

Dial Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

FIELD Dial() As Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

DialContext

 

var DialContext: Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>;

 

Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)> DialContext

 

var DialContext: Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

DialContext Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

FIELD DialContext() As Func<go.context.Context,go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

DialTLS

 

var DialTLS: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>;

 

Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)> DialTLS

 

var DialTLS: Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

DialTLS Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

 

FIELD DialTLS() As Func<go.builtin.string,go.builtin.string,tuple of (go.net.Conn,go.builtin.error)>

DisableCompression

 

var DisableCompression: bool;

 

bool DisableCompression

 

var DisableCompression: bool

 

DisableCompression bool

 

FIELD DisableCompression() As bool

DisableKeepAlives

 

var DisableKeepAlives: bool;

 

bool DisableKeepAlives

 

var DisableKeepAlives: bool

 

DisableKeepAlives bool

 

FIELD DisableKeepAlives() As bool

ExpectContinueTimeout

 

var ExpectContinueTimeout: Duration;

 

Duration ExpectContinueTimeout

 

var ExpectContinueTimeout: Duration

 

ExpectContinueTimeout Duration

 

FIELD ExpectContinueTimeout() As Duration

ForceAttemptHTTP2

 

var ForceAttemptHTTP2: bool;

 

bool ForceAttemptHTTP2

 

var ForceAttemptHTTP2: bool

 

ForceAttemptHTTP2 bool

 

FIELD ForceAttemptHTTP2() As bool

IdleConnTimeout

 

var IdleConnTimeout: Duration;

 

Duration IdleConnTimeout

 

var IdleConnTimeout: Duration

 

IdleConnTimeout Duration

 

FIELD IdleConnTimeout() As Duration

MaxConnsPerHost

 

var MaxConnsPerHost: int;

 

int MaxConnsPerHost

 

var MaxConnsPerHost: int

 

MaxConnsPerHost int

 

FIELD MaxConnsPerHost() As int

MaxIdleConns

 

var MaxIdleConns: int;

 

int MaxIdleConns

 

var MaxIdleConns: int

 

MaxIdleConns int

 

FIELD MaxIdleConns() As int

MaxIdleConnsPerHost

 

var MaxIdleConnsPerHost: int;

 

int MaxIdleConnsPerHost

 

var MaxIdleConnsPerHost: int

 

MaxIdleConnsPerHost int

 

FIELD MaxIdleConnsPerHost() As int

MaxResponseHeaderBytes

 

var MaxResponseHeaderBytes: int64;

 

int64 MaxResponseHeaderBytes

 

var MaxResponseHeaderBytes: int64

 

MaxResponseHeaderBytes int64

 

FIELD MaxResponseHeaderBytes() As int64

Proxy

 

var Proxy: Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>;

 

Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)> Proxy

 

var Proxy: Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>

 

Proxy Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>

 

FIELD Proxy() As Func<go.builtin.Reference<go.net.http.Request>,tuple of (go.builtin.Reference<go.net.url.URL>,go.builtin.error)>

ProxyConnectHeader

 

var ProxyConnectHeader: Header;

 

Header ProxyConnectHeader

 

var ProxyConnectHeader: Header

 

ProxyConnectHeader Header

 

FIELD ProxyConnectHeader() As Header

ReadBufferSize

 

var ReadBufferSize: int;

 

int ReadBufferSize

 

var ReadBufferSize: int

 

ReadBufferSize int

 

FIELD ReadBufferSize() As int

ResponseHeaderTimeout

 

var ResponseHeaderTimeout: Duration;

 

Duration ResponseHeaderTimeout

 

var ResponseHeaderTimeout: Duration

 

ResponseHeaderTimeout Duration

 

FIELD ResponseHeaderTimeout() As Duration

TLSClientConfig

 

var TLSClientConfig: Reference<Config>;

 

Reference<Config> TLSClientConfig

 

var TLSClientConfig: Reference<Config>

 

TLSClientConfig Reference<Config>

 

FIELD TLSClientConfig() As Reference<Config>

TLSHandshakeTimeout

 

var TLSHandshakeTimeout: Duration;

 

Duration TLSHandshakeTimeout

 

var TLSHandshakeTimeout: Duration

 

TLSHandshakeTimeout Duration

 

FIELD TLSHandshakeTimeout() As Duration

TLSNextProto

 

var TLSNextProto: Map<string, Func<string, Reference<Conn>, RoundTripper>>;

 

Map<string, Func<string, Reference<Conn>, RoundTripper>> TLSNextProto

 

var TLSNextProto: Map<string, Func<string, Reference<Conn>, RoundTripper>>

 

TLSNextProto Map<string, Func<string, Reference<Conn>, RoundTripper>>

 

FIELD TLSNextProto() As Map<string, Func<string, Reference<Conn>, RoundTripper>>

WriteBufferSize

 

var WriteBufferSize: int;

 

int WriteBufferSize

 

var WriteBufferSize: int

 

WriteBufferSize int

 

FIELD WriteBufferSize() As int

 

constructor

 

constructor

 

Transport()

 

init()

 

Sub New()

constructor (Transport)

 

constructor(value: Transport)

 

Transport(Transport value)

 

init(_ value: Transport)

 

Sub New(value As Transport)

Parameters:

  • value:

RoundTrip (Reference<Request>): tuple of (Response, error)

 

method RoundTrip(req: Reference<Request>): tuple of (Response, error)

 

(Response, error) RoundTrip(Reference<Request> req)

 

func RoundTrip(_ req: Reference<Request>) -> (Response, error)

 

func RoundTrip(req Reference<Request>) (Response, error)

 

Function RoundTrip(req As Reference<Request>) As Tuple (Of Response, error)

Parameters:

  • req:

CancelRequest

 

method CancelRequest(req: Reference<Request>)

 

void CancelRequest(Reference<Request> req)

 

func CancelRequest(_ req: Reference<Request>)

 

func CancelRequest(req Reference<Request>)

 

Sub CancelRequest(req As Reference<Request>)

Parameters:

  • req:

Clone

 

method Clone: Reference<Transport>

 

Reference<Transport> Clone()

 

func Clone() -> Reference<Transport>

 

func Clone() Reference<Transport>

 

Function Clone() As Reference<Transport>

CloseIdleConnections

 

method CloseIdleConnections

 

void CloseIdleConnections()

 

func CloseIdleConnections()

 

func CloseIdleConnections()

 

Sub CloseIdleConnections()

RegisterProtocol

 

method RegisterProtocol(scheme: string; rt: RoundTripper)

 

void RegisterProtocol(string scheme, RoundTripper rt)

 

func RegisterProtocol(_ scheme: string, _ rt: RoundTripper)

 

func RegisterProtocol(scheme string, rt RoundTripper)

 

Sub RegisterProtocol(scheme As string, rt As RoundTripper)

Parameters:

  • scheme:
  • rt:

RoundTrip (Reference<Request>): tuple of (Response, error)

 

method RoundTrip(req: Reference<Request>): tuple of (Response, error)

 

(Response, error) RoundTrip(Reference<Request> req)

 

func RoundTrip(_ req: Reference<Request>) -> (Response, error)

 

func RoundTrip(req Reference<Request>) (Response, error)

 

Function RoundTrip(req As Reference<Request>) As Tuple (Of Response, error)

Parameters:

  • req: