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.

          Source Files