Client

Overview

Location

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

 

constructor

 

constructor

 

Client()

 

init()

 

Sub New()

constructor (RoundTripper, Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>, CookieJar, Duration)

 

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

 

Client(RoundTripper aTransport, Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error> aCheckRedirect, CookieJar aJar, Duration aTimeout)

 

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

 

Sub New(aTransport As RoundTripper, aCheckRedirect As Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>, aJar As CookieJar, aTimeout As Duration)

Parameters:

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

constructor (Client)

 

constructor(value: Client)

 

Client(Client value)

 

init(_ value: Client)

 

Sub New(value As Client)

Parameters:

  • value:

CheckRedirect

 

var CheckRedirect: Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>;

 

Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error> CheckRedirect

 

var CheckRedirect: Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>

 

CheckRedirect Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>

 

FIELD CheckRedirect() As Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>

CloseIdleConnections

 

method CloseIdleConnections

 

void CloseIdleConnections()

 

func CloseIdleConnections()

 

func CloseIdleConnections()

 

Sub CloseIdleConnections()

Do

 

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

 

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

 

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

 

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

 

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

Parameters:

  • req:

Get

 

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

 

(Response resp, error err) Get(string url)

 

func Get(_ url: string) -> (Response, error)

 

func Get(url string) (resp Response, err error)

 

Function Get(url As string) As Tuple (Of Response, error)

Parameters:

  • url:

Head

 

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

 

(Response resp, error err) Head(string url)

 

func Head(_ url: string) -> (Response, error)

 

func Head(url string) (resp Response, err error)

 

Function Head(url As string) As Tuple (Of Response, error)

Parameters:

  • url:

Jar

 

var Jar: CookieJar;

 

CookieJar Jar

 

var Jar: CookieJar

 

Jar CookieJar

 

FIELD Jar() As CookieJar

Post

 

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

 

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

 

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

 

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

 

Function Post(url As string, contentType As string, body As Reader) As Tuple (Of Response, error)

Parameters:

  • url:
  • contentType:
  • body:

PostForm

 

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

 

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

 

func PostForm(_ url: string, _ data: Values) -> (Response, error)

 

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

 

Function PostForm(url As string, data As Values) As Tuple (Of Response, error)

Parameters:

  • url:
  • data:

Timeout

 

var Timeout: Duration;

 

Duration Timeout

 

var Timeout: Duration

 

Timeout Duration

 

FIELD Timeout() As Duration

Transport

 

var Transport: RoundTripper;

 

RoundTripper Transport

 

var Transport: RoundTripper

 

Transport RoundTripper

 

FIELD Transport() As RoundTripper

 

CheckRedirect

 

var CheckRedirect: Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>;

 

Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error> CheckRedirect

 

var CheckRedirect: Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>

 

CheckRedirect Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>

 

FIELD CheckRedirect() As Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>

Jar

 

var Jar: CookieJar;

 

CookieJar Jar

 

var Jar: CookieJar

 

Jar CookieJar

 

FIELD Jar() As CookieJar

Timeout

 

var Timeout: Duration;

 

Duration Timeout

 

var Timeout: Duration

 

Timeout Duration

 

FIELD Timeout() As Duration

Transport

 

var Transport: RoundTripper;

 

RoundTripper Transport

 

var Transport: RoundTripper

 

Transport RoundTripper

 

FIELD Transport() As RoundTripper

 

constructor

 

constructor

 

Client()

 

init()

 

Sub New()

constructor (RoundTripper, Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>, CookieJar, Duration)

 

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

 

Client(RoundTripper aTransport, Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error> aCheckRedirect, CookieJar aJar, Duration aTimeout)

 

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

 

Sub New(aTransport As RoundTripper, aCheckRedirect As Func<go.builtin.Reference<go.net.http.Request>,go.builtin.Slice<go.builtin.Reference<go.net.http.Request>>,go.builtin.error>, aJar As CookieJar, aTimeout As Duration)

Parameters:

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

constructor (Client)

 

constructor(value: Client)

 

Client(Client value)

 

init(_ value: Client)

 

Sub New(value As Client)

Parameters:

  • value:

CloseIdleConnections

 

method CloseIdleConnections

 

void CloseIdleConnections()

 

func CloseIdleConnections()

 

func CloseIdleConnections()

 

Sub CloseIdleConnections()

Do

 

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

 

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

 

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

 

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

 

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

Parameters:

  • req:

Get

 

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

 

(Response resp, error err) Get(string url)

 

func Get(_ url: string) -> (Response, error)

 

func Get(url string) (resp Response, err error)

 

Function Get(url As string) As Tuple (Of Response, error)

Parameters:

  • url:

Head

 

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

 

(Response resp, error err) Head(string url)

 

func Head(_ url: string) -> (Response, error)

 

func Head(url string) (resp Response, err error)

 

Function Head(url As string) As Tuple (Of Response, error)

Parameters:

  • url:

Post

 

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

 

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

 

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

 

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

 

Function Post(url As string, contentType As string, body As Reader) As Tuple (Of Response, error)

Parameters:

  • url:
  • contentType:
  • body:

PostForm

 

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

 

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

 

func PostForm(_ url: string, _ data: Values) -> (Response, error)

 

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

 

Function PostForm(url As string, data As Values) As Tuple (Of Response, error)

Parameters:

  • url:
  • data: