Documentation ¶
Index ¶
- Constants
- func GetBuffer() []byte
- func PutBuffer(buf []byte)
- type HeadersProxy
- func (h *HeadersProxy) Delete(key string) bool
- func (h *HeadersProxy) Get(key string) goja.Value
- func (h *HeadersProxy) Has(key string) bool
- func (h *HeadersProxy) Keys() []string
- func (h *HeadersProxy) NativeObject() goja.Value
- func (h *HeadersProxy) Set(key string, val goja.Value) bool
- func (h *HeadersProxy) UseHeader(header http.Header)
- type HeadersProxyPool
Constants ¶
View Source
const BufferSize = 8 * 1024
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HeadersProxy ¶
type HeadersProxy struct {
// contains filtered or unexported fields
}
func (*HeadersProxy) Delete ¶
func (h *HeadersProxy) Delete(key string) bool
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) 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)
Click to show internal directories.
Click to hide internal directories.