headers

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented History")

	ErrNotAnHeaders = errors.New("Object is not an Headers")
)

Functions

func GetInterface

func GetInterface() js.Value

GetJSInterface get the JS interface of formdata

Types

type Headers

type Headers struct {
	baseobject.BaseObject
}

History struct

func NewFromJSObject

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

func (Headers) Append

func (h Headers) Append(name, value string) error

func (Headers) Delete

func (h Headers) Delete(name string) error

func (Headers) Entries

func (h Headers) Entries() (iterator.Iterator, error)

func (Headers) Get

func (h Headers) Get(name string) (string, error)

func (Headers) Has

func (h Headers) Has(name string) (bool, error)

func (Headers) Headers_

func (h Headers) Headers_() Headers

func (Headers) Keys

func (h Headers) Keys() (iterator.Iterator, error)

func (Headers) Set

func (h Headers) Set(name, value string) error

func (Headers) Values

func (h Headers) Values() (iterator.Iterator, error)

type HeadersFrom

type HeadersFrom interface {
	Headers_() Headers
}

Jump to

Keyboard shortcuts

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