response

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAnFResp = errors.New("The given value must be an fetch response")
)
View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented Response")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface

Types

type Response

type Response struct {
	baseobject.BaseObject
}

FetchResponse struct

func Error

func Error() (Response, error)

func New

func New() (Response, error)

New Create a response

func NewFromJSObject

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

func (Response) ArrayBuffer

func (r Response) ArrayBuffer() (promise.Promise, error)

func (Response) Blob

func (r Response) Blob() (promise.Promise, error)

func (Response) Body

func (r Response) Body() (stream.ReadableStream, error)

func (Response) BodyUsed

func (r Response) BodyUsed() (bool, error)

func (Response) Clone

func (r Response) Clone() (Response, error)

func (Response) Headers

func (r Response) Headers() (headers.Headers, error)

func (Response) Json

func (r Response) Json() (promise.Promise, error)

func (Response) Ok

func (r Response) Ok() (bool, error)

func (Response) Redirected

func (r Response) Redirected() (bool, error)

func (Response) Response_

func (r Response) Response_() Response

func (Response) Status

func (r Response) Status() (int, error)

func (Response) StatusText

func (r Response) StatusText() (string, error)

func (Response) Text

func (r Response) Text() (promise.Promise, error)

func (Response) Type

func (r Response) Type() (string, error)

func (Response) Url

func (r Response) Url() (string, error)

type ResponseFrom

type ResponseFrom interface {
	Response_() Response
}

Jump to

Keyboard shortcuts

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