cookiefile

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package cookiefile implements a CookieJar over a standard Netscape/curl format cookie file.

https://curl.haxx.se/docs/http-cookies.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJar

func NewJar(c []*http.Cookie) (*cookiejar.Jar, error)

NewJar returns a new cookie jar containing the given cookies.

func Read

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

Read reads the cookie file data and returns its cookies.

Types

This section is empty.

Notes

Bugs

  • Read handles comments only when they start at the beginning of the line. That is probably good enough since the format isn't specified anywhere.

Jump to

Keyboard shortcuts

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