xhr

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 XHREvent

type XHREvent = string
const (
	XHREventLoad      XHREvent = "load"
	XHREventLoadstart XHREvent = "loadstart"
	XHREventLoadend   XHREvent = "loadend"
)

type XMLHTTPRequest

type XMLHTTPRequest = XmlHttpRequest

type XMLHttpRequest

type XMLHttpRequest = XmlHttpRequest

type XmlHttpRequest

type XmlHttpRequest interface {
	event.EventTarget
	Abort() error
	Open(string, string, ...RequestOption)

	Send(body io.Reader) error
	Status() int
	StatusText() string
	ResponseText() string
	SetRequestHeader(name types.ByteString, value types.ByteString)
	GetAllResponseHeaders() (res string, err error)
	OverrideMimeType(mimeType string) error
	GetResponseHeader(headerName types.ByteString) (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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL