Documentation ¶
Overview ¶
Package cookie allows for the modification of cookies on http requests and responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewModifier ¶
func NewModifier(cookie *http.Cookie) martian.RequestResponseModifier
NewModifier returns a modifier that injects the provided cookie into the request or response.
Types ¶
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher is a conditonal evalutor of request or response cookies to be used in structs that take conditions.
func (*Matcher) MatchRequest ¶
MatchRequest evaluates a request and returns whether or not the request contains a cookie that matches the provided name, path and value.
Click to show internal directories.
Click to hide internal directories.