Documentation ¶
Overview ¶
Package ccookies provides a quick way to decode cookies from chromium based browsers.
Some functions cribbed from kooky.
Index ¶
- func Jar(u *url.URL, cookies ...*http.Cookie) (http.CookieJar, error)
- func Read(file, host string) ([]*http.Cookie, error)
- func ReadContext(ctx context.Context, file, host string) ([]*http.Cookie, error)
- func ReadJar(file, urlstr string) (http.CookieJar, error)
- func ReadJarFiltered(file, urlstr string, f func(*http.Cookie) bool) (http.CookieJar, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadContext ¶ added in v0.4.0
ReadContext reads the cookies from the provided sqlite3 file on disk.
func ReadJar ¶ added in v0.4.0
ReadJar reads the cookies from the provided sqlite3 file for the provided url into a cookie jar usable with http.Client.
func ReadJarFiltered ¶ added in v0.4.0
ReadJarFiltered reads the cookies from the provided sqlite3 file for the provided url into a cookie jar (usable with http.Client) consisting of of cookies passed through filter func f.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.