Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestOption ¶
type RequestOption = func(req *xmlHttpRequest)
func RequestOptionAsync ¶
func RequestOptionAsync( val bool, ) RequestOption
func RequestOptionPassword ¶
func RequestOptionPassword(_ string) RequestOption
func RequestOptionUserName ¶
func RequestOptionUserName(_ string) RequestOption
type XMLHTTPRequest ¶ added in v0.7.0
type XMLHTTPRequest = XmlHttpRequest
type XMLHttpRequest ¶ added in v0.7.0
type XMLHttpRequest = XmlHttpRequest
type XmlHttpRequest ¶
type XmlHttpRequest interface { event.EventTarget Abort() error Open(string, string, ...RequestOption) Send(body io.Reader) error // Deprecated: Call Send instead. SendBody(body io.Reader) error Status() int StatusText() string ResponseText() string SetRequestHeader(name string, value string) GetAllResponseHeaders() (res string, err error) OverrideMimeType(mimeType string) error GetResponseHeader(headerName string) (string, bool) SetWithCredentials(val bool) error WithCredentials() bool ResponseURL() string Response() string SetTimeout(int) error ResponseType() string SetResponseType(string) Timeout() int }
func NewXmlHttpRequest ¶
func NewXmlHttpRequest(ctx html.BrowsingContext, clock *clock.Clock) XmlHttpRequest
Click to show internal directories.
Click to hide internal directories.