webapi: github.com/gowebapi/webapi/fetch/corsrfc1918 Index | Files

package corsrfc1918

import "github.com/gowebapi/webapi/fetch/corsrfc1918"

Package corsrfc1918 modifications to Fetch which are intended to mitigate the risks associated with unintentional exposure of devices and servers on a client’s internal network to the web at large.

Index

Package Files

corsrfc1918.go doc.go

type AddressSpace Uses

type AddressSpace int

enum: AddressSpace

const (
    LocalAddressSpace AddressSpace = iota
    PrivateAddressSpace
    PublicAddressSpace
)

func AddressSpaceFromJS Uses

func AddressSpaceFromJS(value js.Value) AddressSpace

AddressSpaceFromJS is converting a javascript value into a AddressSpace enum value.

func (*AddressSpace) JSValue Uses

func (this *AddressSpace) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (AddressSpace) Value Uses

func (this AddressSpace) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package corsrfc1918 imports 1 packages (graph) and is imported by 2 packages. Updated 2019-09-07. Refresh now. Tools for package owners.