cookie

package
v0.0.0-...-3fe4ece Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

cookie parses curl cookie jar files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJar

func NewJar(path string) (http.CookieJar, error)

NewJar reads cookies in the Mozilla/Netscape cookie file format, and returns them as a CookieJar

func ParseCookieJar

func ParseCookieJar(r io.Reader) ([]*http.Cookie, error)

ParseCookieJar parses a cURL/Mozilla/Netscape cookie jar text file.

func WatchJar

func WatchJar(jar http.CookieJar, path string) error

WatchJar starts watching the given path for changes, and loads new data from the file whenever it is available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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