xhr

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 8 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

func Bootstrap

func Bootstrap[T any](reg js.ClassBuilder[T])

Types

type FormData

type FormData[T any] struct{}

func NewFormData

func NewFormData[T any](scriptHost js.ScriptEngine[T]) *FormData[T]

func (FormData[T]) Constructor

func (w FormData[T]) Constructor(cbCtx js.CallbackContext[T]) (res js.Value[T], err error)

func (FormData[T]) CreateInstance

func (w FormData[T]) CreateInstance(cbCtx js.CallbackContext[T]) (js.Value[T], error)

func (FormData[T]) CreateInstanceForm

func (w FormData[T]) CreateInstanceForm(
	cbCtx js.CallbackContext[T],
	form html.HTMLFormElement,
) (js.Value[T], error)

func (FormData[T]) CreateInstanceFormSubmitter

func (w FormData[T]) CreateInstanceFormSubmitter(
	cbCtx js.CallbackContext[T],
	form html.HTMLFormElement,
	submitter html.HTMLElement,
) (js.Value[T], error)

func (FormData[T]) CustomInitializer

func (w FormData[T]) CustomInitializer(class js.Class[T])

func (FormData[T]) Initialize

func (wrapper FormData[T]) Initialize(jsClass js.Class[T])

type XMLHttpRequest

type XMLHttpRequest[T any] struct{}

func NewXMLHttpRequest

func NewXMLHttpRequest[T any](scriptHost js.ScriptEngine[T]) *XMLHttpRequest[T]

func (XMLHttpRequest[T]) Constructor

func (w XMLHttpRequest[T]) Constructor(cbCtx js.CallbackContext[T]) (res js.Value[T], err error)

func (XMLHttpRequest[T]) CreateInstance

func (xhr XMLHttpRequest[T]) CreateInstance(
	cbCtx js.CallbackContext[T],
) (js.Value[T], error)

func (XMLHttpRequest[T]) Initialize

func (wrapper XMLHttpRequest[T]) Initialize(jsClass js.Class[T])

type XMLHttpRequestEventTarget

type XMLHttpRequestEventTarget[T any] struct{}

func NewXMLHttpRequestEventTarget

func NewXMLHttpRequestEventTarget[T any](scriptHost js.ScriptEngine[T]) *XMLHttpRequestEventTarget[T]

func (XMLHttpRequestEventTarget[T]) Constructor

func (w XMLHttpRequestEventTarget[T]) Constructor(cbCtx js.CallbackContext[T]) (res js.Value[T], err error)

func (XMLHttpRequestEventTarget[T]) Initialize

func (wrapper XMLHttpRequestEventTarget[T]) Initialize(jsClass js.Class[T])

Jump to

Keyboard shortcuts

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