Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RouteCriteria

Criteria for matching a request.

Hierarchy

  • RouteCriteria

Index

Properties

Properties

Optional cookies

cookies: undefined | {}

Matches a request based on one or more cookie values. Keys are case-insensitive cookie names, values are regular expressions to match.

Optional headers

headers: undefined | {}

Matches a request based on one or more header values. Keys are case-insensitive header names, values are regular expressions to match.

Optional method

method: string | RegExp

Matches a request based on the HTTP method. Instead of this, prefer using get, post, put, delete, options, and patch methods.

Optional path

path: undefined | string

Matches a request based on the path. The same path syntax is used by the simple form of the Router classes's match method.

Generated using TypeDoc