fetch

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchModule

type FetchModule struct {
	// contains filtered or unexported fields
}

FetchModule provides Promise-based fetch functionality for JavaScript environments

func NewFetchModule

func NewFetchModule(loop *eventloop.EventLoop) *FetchModule

NewFetchModule creates a new fetch module instance with event loop

func (*FetchModule) RegisterGlobal

func (fm *FetchModule) RegisterGlobal(vm *js.Runtime)

RegisterGlobal registers the fetch function in the JavaScript VM

type FetchResponse

type FetchResponse struct {
	Status     int
	StatusText string
	Headers    map[string]string
	Body       string
	URL        string
}

FetchResponse represents the response from a fetch request

Jump to

Keyboard shortcuts

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