shared

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 8 * 1024

Variables

This section is empty.

Functions

func GetBuffer

func GetBuffer() []byte

func PutBuffer

func PutBuffer(buf []byte)

Types

type HeadersProxy

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

func (*HeadersProxy) Delete

func (h *HeadersProxy) Delete(key string) bool

func (*HeadersProxy) Get

func (h *HeadersProxy) Get(key string) goja.Value

func (*HeadersProxy) Has

func (h *HeadersProxy) Has(key string) bool

func (*HeadersProxy) Keys

func (h *HeadersProxy) Keys() []string

func (*HeadersProxy) NativeObject

func (h *HeadersProxy) NativeObject() goja.Value

func (*HeadersProxy) Set

func (h *HeadersProxy) Set(key string, val goja.Value) bool

func (*HeadersProxy) UseHeader

func (h *HeadersProxy) UseHeader(header http.Header)

type HeadersProxyPool

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

func NewHeadersProxyPool

func NewHeadersProxyPool(vm *goja.Runtime, symbols *polyfill.RuntimeSymbols) *HeadersProxyPool

func (*HeadersProxyPool) Get

func (p *HeadersProxyPool) Get() *HeadersProxy

func (*HeadersProxyPool) Put

func (p *HeadersProxyPool) Put(h *HeadersProxy)

Jump to

Keyboard shortcuts

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