html

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 8 Imported by: 0

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 interface {
	dom.EventTarget
	Abort() error
	Open(string, string, ...RequestOption)
	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
	SetWithCredentials(val bool) error
	WithCredentials() bool
	ResponseURL() string
	Response() string
	SetTimeout(int) error
	Timeout() int
}

func NewXmlHttpRequest

func NewXmlHttpRequest(client http.Client, location string) XmlHttpRequest

Jump to

Keyboard shortcuts

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