Request

Overview

Location

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

 

constructor

 

constructor

 

Request()

 

init()

 

Sub New()

 

constructor(aMethod: string; aURL: Reference<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: Reference<Form>; aTrailer: Header; aRemoteAddr: string; aRequestURI: string; aTLS: Reference<ConnectionState>; aCancel: ReceivingChannel<Object>; aResponse: Reference<Response>; actx: Context)

 

Request(string aMethod, Reference<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, Reference<Form> aMultipartForm, Header aTrailer, string aRemoteAddr, string aRequestURI, Reference<ConnectionState> aTLS, ReceivingChannel<Object> aCancel, Reference<Response> aResponse, Context actx)

 

init(_ aMethod: string, _ aURL: Reference<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: Reference<Form>, _ aTrailer: Header, _ aRemoteAddr: string, _ aRequestURI: string, _ aTLS: Reference<ConnectionState>, _ aCancel: ReceivingChannel<Object>, _ aResponse: Reference<Response>, _ actx: Context)

 

Sub New(aMethod As string, aURL As Reference<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 Reference<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Reference<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Reference<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)

 

constructor(value: Request)

 

Request(Request value)

 

init(_ value: Request)

 

Sub New(value As Request)

Parameters:

  • value:

AddCookie

 

method AddCookie(c: Reference<Cookie>)

 

void AddCookie(Reference<Cookie> c)

 

func AddCookie(_ c: Reference<Cookie>)

 

func AddCookie(c Reference<Cookie>)

 

Sub AddCookie(c As Reference<Cookie>)

Parameters:

  • c:

BasicAuth

 

method BasicAuth: tuple of (username: string, password: string, ok: Boolean)

 

(string username, string password, Boolean ok) BasicAuth()

 

func BasicAuth() -> (string, string, Boolean)

 

func BasicAuth() (username string, password string, ok 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>;

 

var Cancel: ReceivingChannel<Object>

 

FIELD Cancel() As ReceivingChannel<Object>

Clone

 

method Clone(ctx: Context): Reference<Request>

 

Reference<Request> Clone(Context ctx)

 

func Clone(_ ctx: Context) -> Reference<Request>

 

func Clone(ctx Context) Reference<Request>

 

Function Clone(ctx As Context) As Reference<Request>

Parameters:

  • ctx:

Close

 

var Close: bool;

 

bool Close

 

var Close: bool

 

Close bool

 

FIELD Close() As bool

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

 

method Cookie(name: string): tuple of (Cookie, error)

 

(Cookie, error) Cookie(string name)

 

func Cookie(_ name: string) -> (Cookie, error)

 

func Cookie(name string) (Cookie, error)

 

Function Cookie(name As string) As Tuple (Of Cookie, error)

Parameters:

  • name:

Cookies

 

method Cookies: Slice<Reference<Cookie>>

 

Slice<Reference<Cookie>> Cookies()

 

func Cookies() -> Slice<Reference<Cookie>>

 

func Cookies() Slice<Reference<Cookie>>

 

Function Cookies() As Slice<Reference<Cookie>>

Form

 

var Form: Values;

 

Values Form

 

var Form: Values

 

Form Values

 

FIELD Form() As Values

FormFile

 

method FormFile(key: string): tuple of (File, FileHeader, error)

 

(File, FileHeader, error) FormFile(string key)

 

func FormFile(_ key: string) -> (File, FileHeader, error)

 

func FormFile(key string) (File, FileHeader, error)

 

Function FormFile(key As string) As Tuple (Of File, 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 (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

 

var Header: Header;

 

Header Header

 

var Header: Header

 

Header Header

 

FIELD Header() As Header

Host

 

var Host: string;

 

string Host

 

var Host: string

 

Host string

 

FIELD Host() As string

Method

 

var Method: string;

 

string Method

 

var Method: string

 

Method string

 

FIELD Method() As string

MultipartForm

 

var MultipartForm: Reference<Form>;

 

Reference<Form> MultipartForm

 

var MultipartForm: Reference<Form>

 

MultipartForm Reference<Form>

 

FIELD MultipartForm() As Reference<Form>

MultipartReader

 

method MultipartReader: tuple of (Reader, error)

 

(Reader, error) MultipartReader()

 

func MultipartReader() -> (Reader, error)

 

func MultipartReader() (Reader, error)

 

Function MultipartReader() As Tuple (Of Reader, error)

ParseForm

 

method ParseForm: error

 

error ParseForm()

 

func ParseForm() -> error

 

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

 

var PostForm: Values;

 

Values PostForm

 

var PostForm: Values

 

PostForm Values

 

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

 

var Proto: string;

 

string Proto

 

var Proto: string

 

Proto string

 

FIELD Proto() As string

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

 

var ProtoMajor: int;

 

int ProtoMajor

 

var ProtoMajor: int

 

ProtoMajor int

 

FIELD ProtoMajor() As int

ProtoMinor

 

var ProtoMinor: int;

 

int ProtoMinor

 

var ProtoMinor: int

 

ProtoMinor int

 

FIELD ProtoMinor() As int

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

 

var Response: Reference<Response>;

 

Reference<Response> Response

 

var Response: Reference<Response>

 

Response Reference<Response>

 

FIELD Response() As Reference<Response>

SetBasicAuth

 

method SetBasicAuth(username: string; password: string)

 

void SetBasicAuth(string username, string password)

 

func SetBasicAuth(_ username: string, _ password: string)

 

func SetBasicAuth(username string, password string)

 

Sub SetBasicAuth(username As string, password As string)

Parameters:

  • username:
  • password:

TLS


Trailer

 

var Trailer: Header;

 

Header Trailer

 

var Trailer: Header

 

Trailer Header

 

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

 

var URL: Reference<URL>;

 

Reference<URL> URL

 

var URL: Reference<URL>

 

URL Reference<URL>

 

FIELD URL() As Reference<URL>

UserAgent

 

method UserAgent: string

 

string UserAgent()

 

func UserAgent() -> string

 

func UserAgent() string

 

Function UserAgent() As string

WithContext

 

method WithContext(ctx: Context): Reference<Request>

 

Reference<Request> WithContext(Context ctx)

 

func WithContext(_ ctx: Context) -> Reference<Request>

 

func WithContext(ctx Context) Reference<Request>

 

Function WithContext(ctx As Context) As Reference<Request>

Parameters:

  • ctx:

Write

 

method Write(w: Writer): error

 

error Write(Writer w)

 

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

 

var Body: ReadCloser;

 

ReadCloser Body

 

var Body: ReadCloser

 

Body ReadCloser

 

FIELD Body() As ReadCloser

Cancel

 

var Cancel: ReceivingChannel<Object>;

 

var Cancel: ReceivingChannel<Object>

 

FIELD Cancel() As ReceivingChannel<Object>

Close

 

var Close: bool;

 

bool Close

 

var Close: bool

 

Close bool

 

FIELD Close() As bool

ContentLength

 

var ContentLength: int64;

 

int64 ContentLength

 

var ContentLength: int64

 

ContentLength int64

 

FIELD ContentLength() As int64

Form

 

var Form: Values;

 

Values Form

 

var Form: Values

 

Form Values

 

FIELD Form() As Values

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

 

var Header: Header;

 

Header Header

 

var Header: Header

 

Header Header

 

FIELD Header() As Header

Host

 

var Host: string;

 

string Host

 

var Host: string

 

Host string

 

FIELD Host() As string

Method

 

var Method: string;

 

string Method

 

var Method: string

 

Method string

 

FIELD Method() As string

MultipartForm

 

var MultipartForm: Reference<Form>;

 

Reference<Form> MultipartForm

 

var MultipartForm: Reference<Form>

 

MultipartForm Reference<Form>

 

FIELD MultipartForm() As Reference<Form>

PostForm

 

var PostForm: Values;

 

Values PostForm

 

var PostForm: Values

 

PostForm Values

 

FIELD PostForm() As Values

Proto

 

var Proto: string;

 

string Proto

 

var Proto: string

 

Proto string

 

FIELD Proto() As string

ProtoMajor

 

var ProtoMajor: int;

 

int ProtoMajor

 

var ProtoMajor: int

 

ProtoMajor int

 

FIELD ProtoMajor() As int

ProtoMinor

 

var ProtoMinor: int;

 

int ProtoMinor

 

var ProtoMinor: int

 

ProtoMinor int

 

FIELD ProtoMinor() As int

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

 

var Response: Reference<Response>;

 

Reference<Response> Response

 

var Response: Reference<Response>

 

Response Reference<Response>

 

FIELD Response() As Reference<Response>

TLS


Trailer

 

var Trailer: Header;

 

Header Trailer

 

var Trailer: Header

 

Trailer Header

 

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

 

var URL: Reference<URL>;

 

Reference<URL> URL

 

var URL: Reference<URL>

 

URL Reference<URL>

 

FIELD URL() As Reference<URL>

 

constructor

 

constructor

 

Request()

 

init()

 

Sub New()

 

constructor(aMethod: string; aURL: Reference<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: Reference<Form>; aTrailer: Header; aRemoteAddr: string; aRequestURI: string; aTLS: Reference<ConnectionState>; aCancel: ReceivingChannel<Object>; aResponse: Reference<Response>; actx: Context)

 

Request(string aMethod, Reference<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, Reference<Form> aMultipartForm, Header aTrailer, string aRemoteAddr, string aRequestURI, Reference<ConnectionState> aTLS, ReceivingChannel<Object> aCancel, Reference<Response> aResponse, Context actx)

 

init(_ aMethod: string, _ aURL: Reference<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: Reference<Form>, _ aTrailer: Header, _ aRemoteAddr: string, _ aRequestURI: string, _ aTLS: Reference<ConnectionState>, _ aCancel: ReceivingChannel<Object>, _ aResponse: Reference<Response>, _ actx: Context)

 

Sub New(aMethod As string, aURL As Reference<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 Reference<Form>, aTrailer As Header, aRemoteAddr As string, aRequestURI As string, aTLS As Reference<ConnectionState>, aCancel As ReceivingChannel<Object>, aResponse As Reference<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)

 

constructor(value: Request)

 

Request(Request value)

 

init(_ value: Request)

 

Sub New(value As Request)

Parameters:

  • value:

AddCookie

 

method AddCookie(c: Reference<Cookie>)

 

void AddCookie(Reference<Cookie> c)

 

func AddCookie(_ c: Reference<Cookie>)

 

func AddCookie(c Reference<Cookie>)

 

Sub AddCookie(c As Reference<Cookie>)

Parameters:

  • c:

BasicAuth

 

method BasicAuth: tuple of (username: string, password: string, ok: Boolean)

 

(string username, string password, Boolean ok) BasicAuth()

 

func BasicAuth() -> (string, string, Boolean)

 

func BasicAuth() (username string, password string, ok Boolean)

 

Function BasicAuth() As Tuple (Of string, string, Boolean)

Clone

 

method Clone(ctx: Context): Reference<Request>

 

Reference<Request> Clone(Context ctx)

 

func Clone(_ ctx: Context) -> Reference<Request>

 

func Clone(ctx Context) Reference<Request>

 

Function Clone(ctx As Context) As Reference<Request>

Parameters:

  • ctx:

Context

 

method Context: Context

 

Context Context()

 

func Context() -> Context

 

func Context() Context

 

Function Context() As Context

Cookie

 

method Cookie(name: string): tuple of (Cookie, error)

 

(Cookie, error) Cookie(string name)

 

func Cookie(_ name: string) -> (Cookie, error)

 

func Cookie(name string) (Cookie, error)

 

Function Cookie(name As string) As Tuple (Of Cookie, error)

Parameters:

  • name:

Cookies

 

method Cookies: Slice<Reference<Cookie>>

 

Slice<Reference<Cookie>> Cookies()

 

func Cookies() -> Slice<Reference<Cookie>>

 

func Cookies() Slice<Reference<Cookie>>

 

Function Cookies() As Slice<Reference<Cookie>>

FormFile

 

method FormFile(key: string): tuple of (File, FileHeader, error)

 

(File, FileHeader, error) FormFile(string key)

 

func FormFile(_ key: string) -> (File, FileHeader, error)

 

func FormFile(key string) (File, FileHeader, error)

 

Function FormFile(key As string) As Tuple (Of File, 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:

MultipartReader

 

method MultipartReader: tuple of (Reader, error)

 

(Reader, error) MultipartReader()

 

func MultipartReader() -> (Reader, error)

 

func MultipartReader() (Reader, error)

 

Function MultipartReader() As Tuple (Of Reader, error)

ParseForm

 

method ParseForm: error

 

error ParseForm()

 

func ParseForm() -> error

 

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:

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:

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:

Referer

 

method Referer: string

 

string Referer()

 

func Referer() -> string

 

func Referer() string

 

Function Referer() As string

SetBasicAuth

 

method SetBasicAuth(username: string; password: string)

 

void SetBasicAuth(string username, string password)

 

func SetBasicAuth(_ username: string, _ password: string)

 

func SetBasicAuth(username string, password string)

 

Sub SetBasicAuth(username As string, password As string)

Parameters:

  • username:
  • password:

UserAgent

 

method UserAgent: string

 

string UserAgent()

 

func UserAgent() -> string

 

func UserAgent() string

 

Function UserAgent() As string

WithContext

 

method WithContext(ctx: Context): Reference<Request>

 

Reference<Request> WithContext(Context ctx)

 

func WithContext(_ ctx: Context) -> Reference<Request>

 

func WithContext(ctx Context) Reference<Request>

 

Function WithContext(ctx As Context) As Reference<Request>

Parameters:

  • ctx:

Write

 

method Write(w: Writer): error

 

error Write(Writer w)

 

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: