yuanlixg/cookiejar
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Jar Serialize for cookies just add a file "json.go" add: func (j *Jar) MarshalJSON() ([]byte, error) func Clone(o *Options, json []byte) (*Jar, error) example: cookiejarOptions := cookiejar.Options{ PublicSuffixList: publicsuffix.List, } jar, _ := cookiejar.New(&cookiejarOptions) client := &http.Client{Jar: jar} client.Get("http://bing.com") buf, err := json.Marshal(client.Jar) // ioutil.WriteFile("cookies.json", buf, 0644) jarClone, err := cookiejar.Clone(&cookiejarOptions, buf) License: as the source code of GoLang
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published