cookie

package
v0.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(cookie *http.Cookie) wrapper.CallWrapper

Add adds a cookie to the request. Per RFC 6265 section 5.4, AddCookie does not attach more than one Cookie header field. That means all cookies, if any, are written into the same line, separated by semicolon.

func AddCookies added in v0.1.14

func AddCookies(cookies []*http.Cookie) wrapper.CallWrapper

AddCookies add multi cookies.

func DelAll

func DelAll() wrapper.CallWrapper

DelAll deletes all the cookies by deleting the Cookie header field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL