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) // Deprecated: This just callse [XmlHttpRequest.SendBody] passing a nil body. This will // eventually change to accept a body argument of type [io.Reader]; // // For a smooth transition, chande all calls to this function to call // [XmlHttpRequest.SendBody] passing nil. Send() error 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 Timeout() int }
func NewXmlHttpRequest ¶
func NewXmlHttpRequest(ctx html.BrowsingContext, clock *clock.Clock) XmlHttpRequest
Click to show internal directories.
Click to hide internal directories.