xmlhttprequest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented     = errors.New("Browser not implemented XMLHTTPRequest")
	ErrNotAXMLHTTPRequest = errors.New("Object is not a XMLHTTPRequest")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface Get the JS XMLHTTPRequest Interface If nil browser doesn't implement it

Types

type XMLHTTPRequest

type XMLHTTPRequest struct {
	baseobject.BaseObject
}

XMLHTTPRequest XMLHTTPRequest struct

func New

func New() (XMLHTTPRequest, error)

New Get an XML HTTP Request

func NewFromJSObject

func NewFromJSObject(obj js.Value) (XMLHTTPRequest, error)

func (XMLHTTPRequest) Abort

func (x XMLHTTPRequest) Abort() error

func (XMLHTTPRequest) Open

func (x XMLHTTPRequest) Open(method string, url string) error

func (XMLHTTPRequest) ReadyState

func (x XMLHTTPRequest) ReadyState() (int, error)

func (XMLHTTPRequest) Response

func (x XMLHTTPRequest) Response() (js.Value, error)

Response

func (XMLHTTPRequest) ResponseText

func (x XMLHTTPRequest) ResponseText() (string, error)

func (XMLHTTPRequest) ResponseURL

func (x XMLHTTPRequest) ResponseURL() (string, error)

func (XMLHTTPRequest) ResponseXML

func (x XMLHTTPRequest) ResponseXML() (js.Value, error)

func (XMLHTTPRequest) Send

func (x XMLHTTPRequest) Send(value ...interface{}) error

Send the form. Can accept a form data in args

func (XMLHTTPRequest) SetOnAbort

func (x XMLHTTPRequest) SetOnAbort(handler func(i interface{}))

SetOnAbort Set SetOnAbort

func (XMLHTTPRequest) SetOnError

func (x XMLHTTPRequest) SetOnError(handler func(i interface{}))

SetOnError Set SetOnError

func (XMLHTTPRequest) SetOnProgress

func (x XMLHTTPRequest) SetOnProgress(handler func(progressevent.ProgressEvent))

SetOnProgress Set OnProgress

func (XMLHTTPRequest) SetOnReadyStateChange

func (x XMLHTTPRequest) SetOnReadyStateChange(handler func(i interface{}))

SetOnReadyStateChange Set SetOnReadyStateChange

func (XMLHTTPRequest) SetOnload

func (x XMLHTTPRequest) SetOnload(handler func(i interface{}))

SetOnload Set OnLoad

func (XMLHTTPRequest) SetRequestHeader

func (x XMLHTTPRequest) SetRequestHeader(header string, value string) error

func (XMLHTTPRequest) SetResponseType

func (x XMLHTTPRequest) SetResponseType(typeResponse string)

func (XMLHTTPRequest) SetWithCredentials

func (x XMLHTTPRequest) SetWithCredentials(withcredentials bool)

func (XMLHTTPRequest) Status

func (x XMLHTTPRequest) Status() (int, error)

func (XMLHTTPRequest) StatusText

func (x XMLHTTPRequest) StatusText() (string, error)

func (XMLHTTPRequest) UploadSetOnabort

func (x XMLHTTPRequest) UploadSetOnabort(handler func(XMLHTTPRequest))

UploadSetOnabort

func (XMLHTTPRequest) UploadSetOnerror

func (x XMLHTTPRequest) UploadSetOnerror(handler func(XMLHTTPRequest))

UploadSetOnerror

func (XMLHTTPRequest) UploadSetOnload

func (x XMLHTTPRequest) UploadSetOnload(handler func(XMLHTTPRequest))

UploadSetOnload

func (XMLHTTPRequest) UploadSetOnloadend

func (x XMLHTTPRequest) UploadSetOnloadend(handler func(XMLHTTPRequest))

UploadSetOnloadend

func (XMLHTTPRequest) UploadSetOnloadstart

func (x XMLHTTPRequest) UploadSetOnloadstart(handler func(XMLHTTPRequest))

UploadSetOnloadstart

func (XMLHTTPRequest) UploadSetOnprogress

func (x XMLHTTPRequest) UploadSetOnprogress(handler func(XMLHTTPRequest, progressevent.ProgressEvent))

UploadSetOnprogress

func (XMLHTTPRequest) UploadSetOntimeout

func (x XMLHTTPRequest) UploadSetOntimeout(handler func(XMLHTTPRequest))

UploadSetOntimeout

func (XMLHTTPRequest) XMLHTTPRequest_

func (x XMLHTTPRequest) XMLHTTPRequest_() XMLHTTPRequest

type XMLHTTPRequestFrom

type XMLHTTPRequestFrom interface {
	XMLHTTPRequest_() XMLHTTPRequest
}

Jump to

Keyboard shortcuts

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