Overview

Location

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

constructor


// .NET, .NET Standard 2.0
constructor(aMethod: string; aURL: Memory<URL>; aProto: string; aProtoMajor: Int64; aProtoMinor: Int64; aHeader: Header; aBody: ReadCloser; aGetBody: Func<tuple of (ReadCloser, error)>; aContentLength: int64; aTransferEncoding: Slice<string>; aClose: Boolean; aHost: string; aForm: Values; aPostForm: Values; aMultipartForm: Memory<Form>; aTrailer: Header; aRemoteAddr: string; aRequestURI: string; aTLS: Memory<ConnectionState>; aCancel: ReceivingChannel<Object>; aResponse: Memory<Response>; actx: Context)
// Island
constructor(aMethod: string; aURL: Memory<URL>; aProto: string; aProtoMajor: int; aProtoMinor: int; aHeader: Header; aBody: ReadCloser; aGetBody: Func<tuple of (ReadCloser, error)>; aContentLength: int64; aTransferEncoding: Slice<string>; aClose: bool; aHost: string; aForm: Values; aPostForm: Values; aMultipartForm: Memory<Form>; aTrailer: Header; aRemoteAddr: string; aRequestURI: string; aTLS: Memory<ConnectionState>; aCancel: ReceivingChannel<Object>; aResponse: Memory<Response>; actx: Context)
// .NET, .NET Standard 2.0
Request(string aMethod, Memory<URL> aURL, string aProto, Int64 aProtoMajor, Int64 aProtoMinor, Header aHeader, ReadCloser aBody, Func<tuple of (ReadCloser, error)> aGetBody, int64 aContentLength, Slice<string> aTransferEncoding, Boolean aClose, string aHost, Values aForm, Values aPostForm, Memory<Form> aMultipartForm, Header aTrailer, string aRemoteAddr, string aRequestURI, Memory<ConnectionState> aTLS, ReceivingChannel<Object> aCancel, Memory<Response> aResponse, Context actx)
// Island
Request(string aMethod, Memory<URL> aURL, string aProto, int aProtoMajor, int aProtoMinor, Header aHeader, ReadCloser aBody, Func<tuple of (ReadCloser, error)> aGetBody, int64 aContentLength, Slice<string> aTransferEncoding, bool aClose, string aHost, Values aForm, Values aPostForm, Memory<Form> aMultipartForm, Header aTrailer, string aRemoteAddr, string aRequestURI, Memory<ConnectionState> aTLS, ReceivingChannel<Object> aCancel, Memory<Response> aResponse, Context actx)
// .NET, .NET Standard 2.0
init(_ aMethod: string, _ aURL: Memory<URL>, _ aProto: string, _ aProtoMajor: Int64, _ aProtoMinor: Int64, _ aHeader: Header, _ aBody: ReadCloser, _ aGetBody: Func<tuple of (ReadCloser, error)>, _ aContentLength: int64, _ aTransferEncoding: Slice<string>, _ aClose: Boolean, _ aHost: string, _ aForm: Values, _ aPostForm: Values, _ aMultipartForm: Memory<Form>, _ aTrailer: Header, _ aRemoteAddr: string, _ aRequestURI: string, _ aTLS: Memory<ConnectionState>, _ aCancel: ReceivingChannel<Object>, _ aResponse: Memory<Response>, _ actx: Context)
// Island
init(_ aMethod: string, _ aURL: Memory<URL>, _ aProto: string, _ aProtoMajor: int, _ aProtoMinor: int, _ aHeader: Header, _ aBody: ReadCloser, _ aGetBody: Func<tuple of (ReadCloser, error)>, _ aContentLength: int64, _ aTransferEncoding: Slice<string>, _ aClose: bool, _ aHost: string, _ aForm: Values, _ aPostForm: Values, _ aMultipartForm: Memory<Form>, _ aTrailer: Header, _ aRemoteAddr: string, _ aRequestURI: string, _ aTLS: Memory<ConnectionState>, _ aCancel: ReceivingChannel<Object>, _ aResponse: Memory<Response>, _ actx: Context)
// .NET, .NET Standard 2.0
Sub New(aMethod As string, aURL As Memory<URL>, aProto As string, aProtoMajor As Int64, aProtoMinor As Int64, aHeader As Header, aBody As ReadCloser, aGetBody As Func<tuple of (ReadCloser, error)>, aContentLength As int64, aTransferEncoding As Slice<string>, aClose As Boolean, aHost As string, aForm As Values, aPostForm As Values, aMultipartForm As Memory<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Memory<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Memory<Response>, actx As Context)
// Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
Sub New(aMethod As string, aURL As Memory<URL>, aProto As string, aProtoMajor As int, aProtoMinor As int, aHeader As Header, aBody As ReadCloser, aGetBody As Func<tuple of (ReadCloser, error)>, aContentLength As int64, aTransferEncoding As Slice<string>, aClose As bool, aHost As string, aForm As Values, aPostForm As Values, aMultipartForm As Memory<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Memory<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Memory<Response>, actx As Context)
// Island-watchOS-armv7k
Sub New(aMethod As string, aURL As Memory<URL>, aProto As string, aProtoMajor As int, aProtoMinor As int, aHeader As Header, aBody As ReadCloser, aGetBody As Func (Of Tuple (Of ReadCloser, error)), aContentLength As int64, aTransferEncoding As Slice<string>, aClose As bool, aHost As string, aForm As Values, aPostForm As Values, aMultipartForm As Memory<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Memory<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Memory<Response>, actx As Context)

Parameters:

  • aMethod:
  • aURL:
  • aProto:
  • aProtoMajor:
  • aProtoMinor:
  • aHeader:
  • aBody:
  • aGetBody:
  • aContentLength:
  • aTransferEncoding:
  • aClose:
  • aHost:
  • aForm:
  • aPostForm:
  • aMultipartForm:
  • aTrailer:
  • aRemoteAddr:
  • aRequestURI:
  • aTLS:
  • aCancel:
  • aResponse:
  • actx:

constructor(value: Request)
Sub New(value As Request)

Parameters:

  • value:

AddCookie

method AddCookie(c: Memory<Cookie>)
void AddCookie(Memory<Cookie> c)
func AddCookie(_ c: Memory<Cookie>)
// .NET, .NET Standard 2.0
func AddCookie(c Memory<Cookie>) 
// Island
func AddCookie(c Memory<Cookie>) void
Sub AddCookie(c As Memory<Cookie>)

Parameters:

  • c:

BasicAuth

method BasicAuth: tuple of (username: string, password: string, ok: Boolean)
(string username, string password, Boolean ok) BasicAuth()
func BasicAuth() -> tuple of (string, string, Boolean)
func BasicAuth() tuple of (|name=username| string, |name=password| string, |name=ok| Boolean)
Function BasicAuth() As Tuple (Of string, string, Boolean)

Body

FIELD Body() As ReadCloser

Cancel

var Cancel: ReceivingChannel<Object>;
ReceivingChannel<Object> Cancel
var Cancel: ReceivingChannel<Object>
Cancel ReceivingChannel<interface{}>
FIELD Cancel() As ReceivingChannel<Object>

Clone

method Clone(ctx: Context): Memory<Request>
Memory<Request> Clone(Context ctx)
func Clone(_ ctx: Context) -> Memory<Request>
func Clone(ctx Context) Memory<Request>
Function Clone(ctx As Context) As Memory<Request>

Parameters:

  • ctx:

Close


ContentLength

var ContentLength: int64;
FIELD ContentLength() As int64

Context

func Context() -> Context
Function Context() As Context

Cookie

method Cookie(name: string): tuple of (Memory<Cookie>, error)
(Memory<Cookie>, error) Cookie(string name)
func Cookie(_ name: string) -> tuple of (Memory<Cookie>, error)
func Cookie(name string) tuple of (Memory<Cookie>, error)
Function Cookie(name As string) As Tuple (Of Memory<Cookie>, error)

Parameters:

  • name:

Cookies

method Cookies: Slice<Memory<Cookie>>
Slice<Memory<Cookie>> Cookies()
func Cookies() -> Slice<Memory<Cookie>>
func Cookies() Slice<Memory<Cookie>>
Function Cookies() As Slice<Memory<Cookie>>

Form


FormFile

method FormFile(key: string): tuple of (File, Memory<FileHeader>, error)
(File, Memory<FileHeader>, error) FormFile(string key)
func FormFile(_ key: string) -> tuple of (File, Memory<FileHeader>, error)
func FormFile(key string) tuple of (File, Memory<FileHeader>, error)
Function FormFile(key As string) As Tuple (Of File, Memory<FileHeader>, error)

Parameters:

  • key:

FormValue

method FormValue(key: string): string
string FormValue(string key)
func FormValue(_ key: string) -> string
func FormValue(key string) string
Function FormValue(key As string) As string

Parameters:

  • key:

GetBody

var GetBody: Func<tuple of (ReadCloser, error)>;
Func<tuple of (ReadCloser, error)> GetBody
var GetBody: Func<tuple of (ReadCloser, error)>
GetBody Func<tuple of (ReadCloser, error)>
// .NET, .NET Standard 2.0, Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
FIELD GetBody() As Func<tuple of (ReadCloser, error)>
// Island-watchOS-armv7k
FIELD GetBody() As Func (Of Tuple (Of ReadCloser, error))


Host


Method


MultipartForm

var MultipartForm: Memory<Form>;
Memory<Form> MultipartForm
var MultipartForm: Memory<Form>
MultipartForm Memory<Form>
FIELD MultipartForm() As Memory<Form>

MultipartReader

method MultipartReader: tuple of (Memory<Reader>, error)
(Memory<Reader>, error) MultipartReader()
func MultipartReader() -> tuple of (Memory<Reader>, error)
func MultipartReader() tuple of (Memory<Reader>, error)
Function MultipartReader() As Tuple (Of Memory<Reader>, error)

ParseForm

func ParseForm() -> error
Function ParseForm() As error

ParseMultipartForm

method ParseMultipartForm(maxMemory: int64): error
error ParseMultipartForm(int64 maxMemory)
func ParseMultipartForm(_ maxMemory: int64) -> error
func ParseMultipartForm(maxMemory int64) error
Function ParseMultipartForm(maxMemory As int64) As error

Parameters:

  • maxMemory:

PostForm

FIELD PostForm() As Values

PostFormValue

method PostFormValue(key: string): string
string PostFormValue(string key)
func PostFormValue(_ key: string) -> string
func PostFormValue(key string) string
Function PostFormValue(key As string) As string

Parameters:

  • key:

Proto


ProtoAtLeast

method ProtoAtLeast(major: int; minor: int): bool
bool ProtoAtLeast(int major, int minor)
func ProtoAtLeast(_ major: int, _ minor: int) -> bool
func ProtoAtLeast(major int, minor int) bool
Function ProtoAtLeast(major As int, minor As int) As bool

Parameters:

  • major:
  • minor:

ProtoMajor

FIELD ProtoMajor() As int

ProtoMinor

FIELD ProtoMinor() As int

Referer

Function Referer() As string

RemoteAddr

FIELD RemoteAddr() As string

RequestURI

FIELD RequestURI() As string

Response

var Response: Memory<Response>;
Memory<Response> Response
var Response: Memory<Response>
Response Memory<Response>
FIELD Response() As Memory<Response>

SetBasicAuth

method SetBasicAuth(username: string; password: string)
void SetBasicAuth(string username, string password)
func SetBasicAuth(_ username: string, _ password: string)
// .NET, .NET Standard 2.0
func SetBasicAuth(username string, password string) 
// Island
func SetBasicAuth(username string, password string) void
Sub SetBasicAuth(username As string, password As string)

Parameters:

  • username:
  • password:

TLS

var TLS: Memory<ConnectionState>;
Memory<ConnectionState> TLS
var TLS: Memory<ConnectionState>
TLS Memory<ConnectionState>
FIELD TLS() As Memory<ConnectionState>

Trailer

FIELD Trailer() As Header

TransferEncoding

var TransferEncoding: Slice<string>;
Slice<string> TransferEncoding
var TransferEncoding: Slice<string>
TransferEncoding Slice<string>
FIELD TransferEncoding() As Slice<string>

URL

FIELD URL() As Memory<URL>

UserAgent

func UserAgent() -> string
Function UserAgent() As string

WithContext

method WithContext(ctx: Context): Memory<Request>
Memory<Request> WithContext(Context ctx)
func WithContext(_ ctx: Context) -> Memory<Request>
func WithContext(ctx Context) Memory<Request>
Function WithContext(ctx As Context) As Memory<Request>

Parameters:

  • ctx:

Write

method Write(w: Writer): error
func Write(_ w: Writer) -> error
func Write(w Writer) error
Function Write(w As Writer) As error

Parameters:

  • w:

WriteProxy

method WriteProxy(w: Writer): error
error WriteProxy(Writer w)
func WriteProxy(_ w: Writer) -> error
func WriteProxy(w Writer) error
Function WriteProxy(w As Writer) As error

Parameters:

  • w:

Body

FIELD Body() As ReadCloser

Cancel

var Cancel: ReceivingChannel<Object>;
ReceivingChannel<Object> Cancel
var Cancel: ReceivingChannel<Object>
Cancel ReceivingChannel<interface{}>
FIELD Cancel() As ReceivingChannel<Object>

Close


ContentLength

var ContentLength: int64;
FIELD ContentLength() As int64

Form


GetBody

var GetBody: Func<tuple of (ReadCloser, error)>;
Func<tuple of (ReadCloser, error)> GetBody
var GetBody: Func<tuple of (ReadCloser, error)>
GetBody Func<tuple of (ReadCloser, error)>
// .NET, .NET Standard 2.0, Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
FIELD GetBody() As Func<tuple of (ReadCloser, error)>
// Island-watchOS-armv7k
FIELD GetBody() As Func (Of Tuple (Of ReadCloser, error))


Host


Method


MultipartForm

var MultipartForm: Memory<Form>;
Memory<Form> MultipartForm
var MultipartForm: Memory<Form>
MultipartForm Memory<Form>
FIELD MultipartForm() As Memory<Form>

PostForm

FIELD PostForm() As Values

Proto


ProtoMajor

FIELD ProtoMajor() As int

ProtoMinor

FIELD ProtoMinor() As int

RemoteAddr

FIELD RemoteAddr() As string

RequestURI

FIELD RequestURI() As string

Response

var Response: Memory<Response>;
Memory<Response> Response
var Response: Memory<Response>
Response Memory<Response>
FIELD Response() As Memory<Response>

TLS

var TLS: Memory<ConnectionState>;
Memory<ConnectionState> TLS
var TLS: Memory<ConnectionState>
TLS Memory<ConnectionState>
FIELD TLS() As Memory<ConnectionState>

Trailer

FIELD Trailer() As Header

TransferEncoding

var TransferEncoding: Slice<string>;
Slice<string> TransferEncoding
var TransferEncoding: Slice<string>
TransferEncoding Slice<string>
FIELD TransferEncoding() As Slice<string>

URL

FIELD URL() As Memory<URL>

constructor


// .NET, .NET Standard 2.0
constructor(aMethod: string; aURL: Memory<URL>; aProto: string; aProtoMajor: Int64; aProtoMinor: Int64; aHeader: Header; aBody: ReadCloser; aGetBody: Func<tuple of (ReadCloser, error)>; aContentLength: int64; aTransferEncoding: Slice<string>; aClose: Boolean; aHost: string; aForm: Values; aPostForm: Values; aMultipartForm: Memory<Form>; aTrailer: Header; aRemoteAddr: string; aRequestURI: string; aTLS: Memory<ConnectionState>; aCancel: ReceivingChannel<Object>; aResponse: Memory<Response>; actx: Context)
// Island
constructor(aMethod: string; aURL: Memory<URL>; aProto: string; aProtoMajor: int; aProtoMinor: int; aHeader: Header; aBody: ReadCloser; aGetBody: Func<tuple of (ReadCloser, error)>; aContentLength: int64; aTransferEncoding: Slice<string>; aClose: bool; aHost: string; aForm: Values; aPostForm: Values; aMultipartForm: Memory<Form>; aTrailer: Header; aRemoteAddr: string; aRequestURI: string; aTLS: Memory<ConnectionState>; aCancel: ReceivingChannel<Object>; aResponse: Memory<Response>; actx: Context)
// .NET, .NET Standard 2.0
Request(string aMethod, Memory<URL> aURL, string aProto, Int64 aProtoMajor, Int64 aProtoMinor, Header aHeader, ReadCloser aBody, Func<tuple of (ReadCloser, error)> aGetBody, int64 aContentLength, Slice<string> aTransferEncoding, Boolean aClose, string aHost, Values aForm, Values aPostForm, Memory<Form> aMultipartForm, Header aTrailer, string aRemoteAddr, string aRequestURI, Memory<ConnectionState> aTLS, ReceivingChannel<Object> aCancel, Memory<Response> aResponse, Context actx)
// Island
Request(string aMethod, Memory<URL> aURL, string aProto, int aProtoMajor, int aProtoMinor, Header aHeader, ReadCloser aBody, Func<tuple of (ReadCloser, error)> aGetBody, int64 aContentLength, Slice<string> aTransferEncoding, bool aClose, string aHost, Values aForm, Values aPostForm, Memory<Form> aMultipartForm, Header aTrailer, string aRemoteAddr, string aRequestURI, Memory<ConnectionState> aTLS, ReceivingChannel<Object> aCancel, Memory<Response> aResponse, Context actx)
// .NET, .NET Standard 2.0
init(_ aMethod: string, _ aURL: Memory<URL>, _ aProto: string, _ aProtoMajor: Int64, _ aProtoMinor: Int64, _ aHeader: Header, _ aBody: ReadCloser, _ aGetBody: Func<tuple of (ReadCloser, error)>, _ aContentLength: int64, _ aTransferEncoding: Slice<string>, _ aClose: Boolean, _ aHost: string, _ aForm: Values, _ aPostForm: Values, _ aMultipartForm: Memory<Form>, _ aTrailer: Header, _ aRemoteAddr: string, _ aRequestURI: string, _ aTLS: Memory<ConnectionState>, _ aCancel: ReceivingChannel<Object>, _ aResponse: Memory<Response>, _ actx: Context)
// Island
init(_ aMethod: string, _ aURL: Memory<URL>, _ aProto: string, _ aProtoMajor: int, _ aProtoMinor: int, _ aHeader: Header, _ aBody: ReadCloser, _ aGetBody: Func<tuple of (ReadCloser, error)>, _ aContentLength: int64, _ aTransferEncoding: Slice<string>, _ aClose: bool, _ aHost: string, _ aForm: Values, _ aPostForm: Values, _ aMultipartForm: Memory<Form>, _ aTrailer: Header, _ aRemoteAddr: string, _ aRequestURI: string, _ aTLS: Memory<ConnectionState>, _ aCancel: ReceivingChannel<Object>, _ aResponse: Memory<Response>, _ actx: Context)
// .NET, .NET Standard 2.0
Sub New(aMethod As string, aURL As Memory<URL>, aProto As string, aProtoMajor As Int64, aProtoMinor As Int64, aHeader As Header, aBody As ReadCloser, aGetBody As Func<tuple of (ReadCloser, error)>, aContentLength As int64, aTransferEncoding As Slice<string>, aClose As Boolean, aHost As string, aForm As Values, aPostForm As Values, aMultipartForm As Memory<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Memory<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Memory<Response>, actx As Context)
// Island-Android, Island-iOS Simulator, Island-iOS-arm64, Island-Mac Catalyst, Island-macOS, Island-tvOS Simulator, Island-tvOS-arm64, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
Sub New(aMethod As string, aURL As Memory<URL>, aProto As string, aProtoMajor As int, aProtoMinor As int, aHeader As Header, aBody As ReadCloser, aGetBody As Func<tuple of (ReadCloser, error)>, aContentLength As int64, aTransferEncoding As Slice<string>, aClose As bool, aHost As string, aForm As Values, aPostForm As Values, aMultipartForm As Memory<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Memory<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Memory<Response>, actx As Context)
// Island-watchOS-armv7k
Sub New(aMethod As string, aURL As Memory<URL>, aProto As string, aProtoMajor As int, aProtoMinor As int, aHeader As Header, aBody As ReadCloser, aGetBody As Func (Of Tuple (Of ReadCloser, error)), aContentLength As int64, aTransferEncoding As Slice<string>, aClose As bool, aHost As string, aForm As Values, aPostForm As Values, aMultipartForm As Memory<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Memory<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Memory<Response>, actx As Context)

Parameters:

  • aMethod:
  • aURL:
  • aProto:
  • aProtoMajor:
  • aProtoMinor:
  • aHeader:
  • aBody:
  • aGetBody:
  • aContentLength:
  • aTransferEncoding:
  • aClose:
  • aHost:
  • aForm:
  • aPostForm:
  • aMultipartForm:
  • aTrailer:
  • aRemoteAddr:
  • aRequestURI:
  • aTLS:
  • aCancel:
  • aResponse:
  • actx:

constructor(value: Request)
Sub New(value As Request)

Parameters:

  • value: