fetch

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT, MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectTo

func InjectTo(ctx *quickjs.Context) error

Types

type QJSRequest

type QJSRequest struct {
	Body     string            `json:"body"`
	Headers  map[string]string `json:"headers"`
	Method   string            `json:"method"`
	Redirect string            `json:"redirect"`
}

type QJSResponse

type QJSResponse struct {
	Status     int32  `json:"status"`
	StatusText string `json:"statusText"`
	OK         bool   `json:"ok"`
	Redirected bool   `json:"redirected"`
	URL        string `json:"url"`
}

Jump to

Keyboard shortcuts

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