cookie

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cookie the cookie JS implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

Cookie manages storage and use of cookies in HTTP requests.

func (*Cookie) Del

func (c *Cookie) Del(uri string) error

Del handles the receipt of the cookies in a reply for the given URL.

func (*Cookie) Get

func (c *Cookie) Get(uri string) ([]string, error)

Get returns the cookies string for the given URL.

func (*Cookie) Set

func (c *Cookie) Set(call goja.FunctionCall, vm *goja.Runtime) (ret goja.Value)

Set handles the receipt of the cookies strung in a reply for the given URL.

type Module

type Module struct{}

Module js module

func (*Module) Exports

func (*Module) Exports() any

Exports returns module instance

Jump to

Keyboard shortcuts

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