Request
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
constructor
Request()
init()
Sub New()
constructor (string, Memory<URL>, string, Int64, Int64, Header, ReadCloser, Func<tuple of (go.io.ReadCloser,go.builtin.error)>, int64, Slice<string>, Boolean, string, Values, Values, Memory<Form>, Header, string, string, Memory<ConnectionState>, ReceivingChannel<Object>, Memory<Response>, Context)
// .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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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
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 (go.io.ReadCloser,go.builtin.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 (Request)
Parameters:
- value:
AddCookie
// .NET, .NET Standard 2.0
method AddCookie(c: Memory<Cookie>)
// Island
method AddCookie(c: Memory<Cookie>)
// .NET, .NET Standard 2.0
void AddCookie(Memory<Cookie> c)
// Island
void AddCookie(Memory<Cookie> c)
// .NET, .NET Standard 2.0
func AddCookie(_ c: Memory<Cookie>)
// Island
func AddCookie(_ c: Memory<Cookie>)
Parameters:
- c:
BasicAuth
func BasicAuth() -> (string, string, Boolean)
Function BasicAuth() As Tuple (Of string, string, Boolean)
Body
var Body: ReadCloser;
ReadCloser Body
var Body: ReadCloser
Body ReadCloser
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
// .NET, .NET Standard 2.0
method Clone(ctx: Context): Memory<Request>
// Island
method Clone(ctx: Context): Memory<Request>
// .NET, .NET Standard 2.0
Memory<Request> Clone(Context ctx)
// Island
Memory<Request> Clone(Context ctx)
// .NET, .NET Standard 2.0
func Clone(_ ctx: Context) -> Memory<Request>
// Island
func Clone(_ ctx: Context) -> Memory<Request>
Parameters:
- ctx:
Close
ContentLength
var ContentLength: int64;
int64 ContentLength
var ContentLength: int64
ContentLength int64
FIELD ContentLength() As int64
Context
method Context: Context
Context Context()
func Context() -> Context
func Context() Context
Function Context() As Context
Cookie
// .NET, .NET Standard 2.0
method Cookie(name: string): tuple of (Memory<Cookie>, error)
// Island
method Cookie(name: string): tuple of (Memory<Cookie>, error)
// .NET, .NET Standard 2.0
(Memory<Cookie>, error) Cookie(string name)
// Island
(Memory<Cookie>, error) Cookie(string name)
// .NET, .NET Standard 2.0
func Cookie(_ name: string) -> (Memory<Cookie>, error)
// Island
func Cookie(_ name: string) -> (Memory<Cookie>, error)
Parameters:
- name:
Cookies
// .NET, .NET Standard 2.0
method Cookies: Slice<Memory<Cookie>>
// Island
method Cookies: Slice<Memory<Cookie>>
// .NET, .NET Standard 2.0
Slice<Memory<Cookie>> Cookies()
// Island
Slice<Memory<Cookie>> Cookies()
// .NET, .NET Standard 2.0
func Cookies() -> Slice<Memory<Cookie>>
// Island
func Cookies() -> Slice<Memory<Cookie>>
Form
FormFile
// .NET, .NET Standard 2.0
method FormFile(key: string): tuple of (File, Memory<FileHeader>, error)
// Island
method FormFile(key: string): tuple of (File, Memory<FileHeader>, error)
// .NET, .NET Standard 2.0
(File, Memory<FileHeader>, error) FormFile(string key)
// Island
(File, Memory<FileHeader>, error) FormFile(string key)
// .NET, .NET Standard 2.0
func FormFile(_ key: string) -> (File, Memory<FileHeader>, error)
// Island
func FormFile(_ key: string) -> (File, Memory<FileHeader>, error)
// .NET, .NET Standard 2.0
func FormFile(key string) tuple of (File, Memory<FileHeader>, error)
// Island
func FormFile(key string) tuple of (File, Memory<FileHeader>, error)
// .NET, .NET Standard 2.0
Function FormFile(key As string) As Tuple (Of File, Memory<FileHeader>, error)
// Island
Function FormFile(key As string) As Tuple (Of File, Memory<FileHeader>, error)
Parameters:
- key:
FormValue
Parameters:
- key:
GetBody
var GetBody: Func<tuple of (go.io.ReadCloser,go.builtin.error)>;
Func<tuple of (go.io.ReadCloser,go.builtin.error)> GetBody
var GetBody: Func<tuple of (go.io.ReadCloser,go.builtin.error)>
GetBody Func<tuple of (go.io.ReadCloser,go.builtin.error)>
FIELD GetBody() As Func<tuple of (go.io.ReadCloser,go.builtin.error)>
Header
Host
Method
MultipartForm
// .NET, .NET Standard 2.0
var MultipartForm: Memory<Form>;
// Island
var MultipartForm: Memory<Form>;
MultipartReader
// .NET, .NET Standard 2.0
method MultipartReader: tuple of (Memory<Reader>, error)
// Island
method MultipartReader: tuple of (Memory<Reader>, error)
// .NET, .NET Standard 2.0
(Memory<Reader>, error) MultipartReader()
// Island
(Memory<Reader>, error) MultipartReader()
// .NET, .NET Standard 2.0
func MultipartReader() -> (Memory<Reader>, error)
// Island
func MultipartReader() -> (Memory<Reader>, error)
ParseForm
method ParseForm: error
error ParseForm()
func ParseForm() -> error
func ParseForm() error
Function ParseForm() As error
ParseMultipartForm
Parameters:
- maxMemory:
PostForm
var PostForm: Values;
Values PostForm
var PostForm: Values
PostForm Values
FIELD PostForm() As Values
PostFormValue
Parameters:
- key:
Proto
ProtoAtLeast
Parameters:
- major:
- minor:
ProtoMajor
ProtoMinor
Referer
method Referer: string
string Referer()
func Referer() -> string
func Referer() string
Function Referer() As string
RemoteAddr
var RemoteAddr: string;
string RemoteAddr
var RemoteAddr: string
RemoteAddr string
FIELD RemoteAddr() As string
RequestURI
var RequestURI: string;
string RequestURI
var RequestURI: string
RequestURI string
FIELD RequestURI() As string
Response
SetBasicAuth
Parameters:
- username:
- password:
TLS
// .NET, .NET Standard 2.0
var TLS: Memory<ConnectionState>;
// Island
var TLS: Memory<ConnectionState>;
// .NET, .NET Standard 2.0
Memory<ConnectionState> TLS
// Island
Memory<ConnectionState> TLS
// .NET, .NET Standard 2.0
var TLS: Memory<ConnectionState>
// Island
var TLS: Memory<ConnectionState>
// .NET, .NET Standard 2.0
TLS Memory<ConnectionState>
// Island
TLS Memory<ConnectionState>
// .NET, .NET Standard 2.0
FIELD TLS() As Memory<ConnectionState>
// Island
FIELD TLS() As Memory<ConnectionState>
Trailer
TransferEncoding
URL
UserAgent
method UserAgent: string
string UserAgent()
func UserAgent() -> string
func UserAgent() string
Function UserAgent() As string
WithContext
// .NET, .NET Standard 2.0
method WithContext(ctx: Context): Memory<Request>
// Island
method WithContext(ctx: Context): Memory<Request>
// .NET, .NET Standard 2.0
Memory<Request> WithContext(Context ctx)
// Island
Memory<Request> WithContext(Context ctx)
// .NET, .NET Standard 2.0
func WithContext(_ ctx: Context) -> Memory<Request>
// Island
func WithContext(_ ctx: Context) -> Memory<Request>
Parameters:
- ctx:
Write
Parameters:
- w:
WriteProxy
Parameters:
- w:
Body
var Body: ReadCloser;
ReadCloser Body
var Body: ReadCloser
Body ReadCloser
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;
int64 ContentLength
var ContentLength: int64
ContentLength int64
FIELD ContentLength() As int64
Form
GetBody
var GetBody: Func<tuple of (go.io.ReadCloser,go.builtin.error)>;
Func<tuple of (go.io.ReadCloser,go.builtin.error)> GetBody
var GetBody: Func<tuple of (go.io.ReadCloser,go.builtin.error)>
GetBody Func<tuple of (go.io.ReadCloser,go.builtin.error)>
FIELD GetBody() As Func<tuple of (go.io.ReadCloser,go.builtin.error)>
Header
Host
Method
MultipartForm
// .NET, .NET Standard 2.0
var MultipartForm: Memory<Form>;
// Island
var MultipartForm: Memory<Form>;
PostForm
var PostForm: Values;
Values PostForm
var PostForm: Values
PostForm Values
FIELD PostForm() As Values
Proto
ProtoMajor
ProtoMinor
RemoteAddr
var RemoteAddr: string;
string RemoteAddr
var RemoteAddr: string
RemoteAddr string
FIELD RemoteAddr() As string
RequestURI
var RequestURI: string;
string RequestURI
var RequestURI: string
RequestURI string
FIELD RequestURI() As string
Response
TLS
// .NET, .NET Standard 2.0
var TLS: Memory<ConnectionState>;
// Island
var TLS: Memory<ConnectionState>;
// .NET, .NET Standard 2.0
Memory<ConnectionState> TLS
// Island
Memory<ConnectionState> TLS
// .NET, .NET Standard 2.0
var TLS: Memory<ConnectionState>
// Island
var TLS: Memory<ConnectionState>
// .NET, .NET Standard 2.0
TLS Memory<ConnectionState>
// Island
TLS Memory<ConnectionState>
// .NET, .NET Standard 2.0
FIELD TLS() As Memory<ConnectionState>
// Island
FIELD TLS() As Memory<ConnectionState>
Trailer
TransferEncoding
URL
constructor
constructor
Request()
init()
Sub New()
constructor (string, Memory<URL>, string, Int64, Int64, Header, ReadCloser, Func<tuple of (go.io.ReadCloser,go.builtin.error)>, int64, Slice<string>, Boolean, string, Values, Values, Memory<Form>, Header, string, string, Memory<ConnectionState>, ReceivingChannel<Object>, Memory<Response>, Context)
// .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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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 (go.io.ReadCloser,go.builtin.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
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 (go.io.ReadCloser,go.builtin.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 (Request)
Parameters:
- value: