Namespace: go.std.net.http.cookiejar
v1.0Contents
Summary
Provides a low-level interface to the net/http/cookiejar package.
Package cookiejar implements an in-memory RFC 6265-compliant http.CookieJar.
Index
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
New
Function v1.0(New o)
New returns a new cookie jar. A nil *Options is equivalent to a zero
Options.
Go input arguments: (o *Options)
Go returns: (*Jar, error)
Joker input arguments: [^*Options o]
Joker returns: [^*Jar, ^Error]
Types
-
*Jar
Concrete Type v1.0Jar implements the http.CookieJar interface from the net/http package.
-
Cookies
Receiver for *Jar v1.0([u])
Cookies implements the Cookies method of the http.CookieJar interface.
It returns an empty slice if the URL's scheme is not HTTP or HTTPS.
-
SetCookies
Receiver for *Jar v1.0([u cookies])
SetCookies implements the SetCookies method of the http.CookieJar interface.
It does nothing if the URL's scheme is not HTTP or HTTPS.
-
*Options
Concrete Type v1.0Options are the options for creating a new Jar.
-
Jar
Concrete Type v1.0Jar implements the http.CookieJar interface from the net/http package.
-
Options
Concrete Type v1.0Options are the options for creating a new Jar.
-
PublicSuffixList
Abstract Type v1.0PublicSuffixList provides the public suffix of a domain. For example:
- the public suffix of "example.com" is "com",
- the public suffix of "foo1.foo2.foo3.co.uk" is "co.uk", and
- the public suffix of "bar.pvt.k12.ma.us" is "pvt.k12.ma.us".
Implementations of PublicSuffixList must be safe for concurrent use by
multiple goroutines.
An implementation that always returns "" is valid and may be useful for
testing but it is not secure: it means that the HTTP server for foo.com can
set a cookie for bar.com.
A public suffix list implementation is in the package
golang.org/x/net/publicsuffix.
-
PublicSuffix
Method for PublicSuffixList v1.0([domain])
-
String
Method for PublicSuffixList v1.0([])
-
arrayOfJar
Concrete Type v1.0Jar implements the http.CookieJar interface from the net/http package.
-
arrayOfOptions
Concrete Type v1.0Options are the options for creating a new Jar.
-
arrayOfPublicSuffixList
Concrete Type v1.0PublicSuffixList provides the public suffix of a domain. For example:
- the public suffix of "example.com" is "com",
- the public suffix of "foo1.foo2.foo3.co.uk" is "co.uk", and
- the public suffix of "bar.pvt.k12.ma.us" is "pvt.k12.ma.us".
Implementations of PublicSuffixList must be safe for concurrent use by
multiple goroutines.
An implementation that always returns "" is valid and may be useful for
testing but it is not secure: it means that the HTTP server for foo.com can
set a cookie for bar.com.
A public suffix list implementation is in the package
golang.org/x/net/publicsuffix.