fetch

package
v0.0.0-...-5ee457c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "heresy-runtime/fetcher"

Variables

View Source
var ErrUnsupportedReadableStream = fmt.Errorf("using custom ReadableStream as body is currently unsupported")

Functions

This section is empty.

Types

type Fetch

type Fetch struct {
	FetchConfig
	// contains filtered or unexported fields
}

func NewFetch

func NewFetch(cfg FetchConfig) (*Fetch, error)

func (*Fetch) GetResponseHelper

func (f *Fetch) GetResponseHelper() goja.Value

func (*Fetch) NewNativeFetchVM

func (f *Fetch) NewNativeFetchVM(t *common.IOContext, vm *goja.Runtime) *NativeFetcher

type FetchConfig

type FetchConfig struct {
	Stream    *stream.StreamController
	Eventloop *eventloop.EventLoop
	Client    *http.Client
}

func (*FetchConfig) Validate

func (c *FetchConfig) Validate() error

type NativeFetchWrapper

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

type NativeFetcher

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

func (*NativeFetcher) NativeFunc

func (n *NativeFetcher) NativeFunc() goja.Value

Jump to

Keyboard shortcuts

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