Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConnectTimeout = errors.New("ErrConnectTimeout") ErrReadTimeout = errors.New("ErrReadTimeout") )
Functions ¶
func Cookies_String_2_Map ¶
func Map_2_Cookies_String ¶
Types ¶
type CookieJson ¶ added in v0.6.0
type CookieJson struct { Name string `json:"Name"` Value string `json:"Value"` Path string `json:"Path"` // optional Domain string `json:"Domain"` // optional Expires string `json:"Expires"` // time.Time in RFC1123 RawExpires string `json:"RawExpires"` // for reading cookies only // MaxAge=0 means no 'Max-Age' attribute specified. // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0' // MaxAge>0 means Max-Age attribute present and given in seconds MaxAge int `json:"MaxAge"` Secure bool `json:"Secure"` HttpOnly bool `json:"HttpOnly"` SameSite http.SameSite `json:"SameSite"` // Go 1.11 Raw string `json:"Raw"` Unparsed []string `json:"Unparsed"` // Raw text of unparsed attribute-value pairs }
func (*CookieJson) FromCookie ¶ added in v0.6.0
func (t *CookieJson) FromCookie(cookie *http.Cookie)
func (*CookieJson) FromJson ¶ added in v0.6.0
func (t *CookieJson) FromJson(cookie_in_json []byte) error
func (*CookieJson) ToJson ¶ added in v0.6.0
func (t *CookieJson) ToJson() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.