cookie

package
v0.9.45 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cookie implements prediate to check parsed cookie headers by name and value.

Index

Constants

View Source
const Name = "Cookie"

The predicate can be referenced in eskip by the name "Cookie".

Variables

This section is empty.

Functions

func New

func New() routing.PredicateSpec

New creates a predicate specification, whose instances can be used to match parsed request cookies.

The cookie predicate accpets two arguments, the cookie name, with what a cookie must exist in the request, and an expression that the cookie value needs to match.

Eskip example:

Cookie("tcial", /^enabled$/) -> "https://www.example.org";

Types

This section is empty.

Jump to

Keyboard shortcuts

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