Client

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.net.http

 

constructor

 

constructor

 

Client()

 

init()

constructor (Client)

 

constructor(value: Client)

 

Client(Client value)

 

init(_ value: Client)

Parameters:

  • value:

 

constructor(aTransport: RoundTripper; aCheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>; aJar: CookieJar; aTimeout: Duration)

 

Client(RoundTripper aTransport, Func<Reference<Request>, Slice<Reference<Request>>, error> aCheckRedirect, CookieJar aJar, Duration aTimeout)

 

init(_ aTransport: RoundTripper, _ aCheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>, _ aJar: CookieJar, _ aTimeout: Duration)

Parameters:

  • aTransport:
  • aCheckRedirect:
  • aJar:
  • aTimeout:

CheckRedirect

 

var CheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>;

 

Func<Reference<Request>, Slice<Reference<Request>>, error> CheckRedirect

 

var CheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>

 

CheckRedirect Func<Reference<Request>, Slice<Reference<Request>>, error>

CloseIdleConnections

 

method CloseIdleConnections

 

void CloseIdleConnections()

 

func CloseIdleConnections()

 

func CloseIdleConnections()

Do

 

// .NET, Island, macOS
method Do(req: Reference<Request>): tuple of (Reference<Response>, error)
// .NET Standard 2.0
method Do(req: Reference<Request>): ValueTuple<Reference<Response>, error>

 

// .NET, Island, macOS
(Reference<Response>, error) Do(Reference<Request> req)
// .NET Standard 2.0
ValueTuple<Reference<Response>, error> Do(Reference<Request> req)

 

// .NET, Island, macOS
func Do(_ req: Reference<Request>) -> (Reference<Response>, error)
// .NET Standard 2.0
func Do(_ req: Reference<Request>) -> ValueTuple<Reference<Response>, error>

 

// .NET, Island, macOS
func Do(req Reference<Request>) (Reference<Response>, error)
// .NET Standard 2.0
func Do(req Reference<Request>) ValueTuple<Reference<Response>, error>

Parameters:

  • req:

Get

 

method Get(url: string): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) Get(string url)

 

func Get(_ url: string) -> (resp:Reference<Response>, err:error)

 

func Get(url string) (resp Reference<Response>, err error)

Parameters:

  • url:

Head

 

method Head(url: string): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) Head(string url)

 

func Head(_ url: string) -> (resp:Reference<Response>, err:error)

 

func Head(url string) (resp Reference<Response>, err error)

Parameters:

  • url:

Jar

 

var Jar: CookieJar;

 

CookieJar Jar

 

var Jar: CookieJar

 

Jar CookieJar

Post

 

method Post(url: string; contentType: string; body: Reader): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) Post(string url, string contentType, Reader body)

 

func Post(_ url: string, _ contentType: string, _ body: Reader) -> (resp:Reference<Response>, err:error)

 

func Post(url string, contentType string, body Reader) (resp Reference<Response>, err error)

Parameters:

  • url:
  • contentType:
  • body:

PostForm

 

method PostForm(url: string; data: Values): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) PostForm(string url, Values data)

 

func PostForm(_ url: string, _ data: Values) -> (resp:Reference<Response>, err:error)

 

func PostForm(url string, data Values) (resp Reference<Response>, err error)

Parameters:

  • url:
  • data:

Timeout

 

var Timeout: Duration;

 

Duration Timeout

 

var Timeout: Duration

 

Timeout Duration

Transport

 

var Transport: RoundTripper;

 

RoundTripper Transport

 

var Transport: RoundTripper

 

Transport RoundTripper

 

CheckRedirect

 

var CheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>;

 

Func<Reference<Request>, Slice<Reference<Request>>, error> CheckRedirect

 

var CheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>

 

CheckRedirect Func<Reference<Request>, Slice<Reference<Request>>, error>

Jar

 

var Jar: CookieJar;

 

CookieJar Jar

 

var Jar: CookieJar

 

Jar CookieJar

Timeout

 

var Timeout: Duration;

 

Duration Timeout

 

var Timeout: Duration

 

Timeout Duration

Transport

 

var Transport: RoundTripper;

 

RoundTripper Transport

 

var Transport: RoundTripper

 

Transport RoundTripper

 

constructor

 

constructor

 

Client()

 

init()

constructor (Client)

 

constructor(value: Client)

 

Client(Client value)

 

init(_ value: Client)

Parameters:

  • value:

 

constructor(aTransport: RoundTripper; aCheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>; aJar: CookieJar; aTimeout: Duration)

 

Client(RoundTripper aTransport, Func<Reference<Request>, Slice<Reference<Request>>, error> aCheckRedirect, CookieJar aJar, Duration aTimeout)

 

init(_ aTransport: RoundTripper, _ aCheckRedirect: Func<Reference<Request>, Slice<Reference<Request>>, error>, _ aJar: CookieJar, _ aTimeout: Duration)

Parameters:

  • aTransport:
  • aCheckRedirect:
  • aJar:
  • aTimeout:

CloseIdleConnections

 

method CloseIdleConnections

 

void CloseIdleConnections()

 

func CloseIdleConnections()

 

func CloseIdleConnections()

Do

 

// .NET, Island, macOS
method Do(req: Reference<Request>): tuple of (Reference<Response>, error)
// .NET Standard 2.0
method Do(req: Reference<Request>): ValueTuple<Reference<Response>, error>

 

// .NET, Island, macOS
(Reference<Response>, error) Do(Reference<Request> req)
// .NET Standard 2.0
ValueTuple<Reference<Response>, error> Do(Reference<Request> req)

 

// .NET, Island, macOS
func Do(_ req: Reference<Request>) -> (Reference<Response>, error)
// .NET Standard 2.0
func Do(_ req: Reference<Request>) -> ValueTuple<Reference<Response>, error>

 

// .NET, Island, macOS
func Do(req Reference<Request>) (Reference<Response>, error)
// .NET Standard 2.0
func Do(req Reference<Request>) ValueTuple<Reference<Response>, error>

Parameters:

  • req:

Get

 

method Get(url: string): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) Get(string url)

 

func Get(_ url: string) -> (resp:Reference<Response>, err:error)

 

func Get(url string) (resp Reference<Response>, err error)

Parameters:

  • url:

Head

 

method Head(url: string): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) Head(string url)

 

func Head(_ url: string) -> (resp:Reference<Response>, err:error)

 

func Head(url string) (resp Reference<Response>, err error)

Parameters:

  • url:

Post

 

method Post(url: string; contentType: string; body: Reader): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) Post(string url, string contentType, Reader body)

 

func Post(_ url: string, _ contentType: string, _ body: Reader) -> (resp:Reference<Response>, err:error)

 

func Post(url string, contentType string, body Reader) (resp Reference<Response>, err error)

Parameters:

  • url:
  • contentType:
  • body:

PostForm

 

method PostForm(url: string; data: Values): tuple of (resp: Reference<Response>, err: error)

 

(Reference<Response> resp, error err) PostForm(string url, Values data)

 

func PostForm(_ url: string, _ data: Values) -> (resp:Reference<Response>, err:error)

 

func PostForm(url string, data Values) (resp Reference<Response>, err error)

Parameters:

  • url:
  • data: