fetch

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Fetch")
	//ErrNotAnEventTarget ErrNotAnEventTarget error
	ErrNotAFetch        = errors.New("Object is not a FetchObject")
	ErrSignalNotManaged = errors.New("Signal is not managed by this instance")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface Get the JS Fetch Interface If nil browser doesn't implement it

Types

type Fetch

type Fetch struct {
	promise.Promise
}

Fetch struct

func New

func New(urlfetch string, opts ...interface{}) (Fetch, error)

func NewFromJSObject

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

func (Fetch) Fetch_

func (f Fetch) Fetch_() Fetch

func (Fetch) Then

func (f Fetch) Then(resolve func(response.Response) *promise.Promise, reject func(error)) (promise.Promise, error)

type FetchCancelable

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

FetchCancelable struct

func NewCancelable

func NewCancelable(urlfetch string, opts ...interface{}) (FetchCancelable, error)

func (FetchCancelable) Abort

func (f FetchCancelable) Abort() error

type FetchFrom

type FetchFrom interface {
	Fetch_() Fetch
}

Jump to

Keyboard shortcuts

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