Represents an endpoint open for connection via the Internet.

Constructors

Route(String method, Pattern path, [List handlers])

Properties

handlers → List

An array of functions, Futures and objects that can respond to this route.

read / write
hashCode → int

Get a hash code for this object.

read-only, inherited
matcher → RegExp

A regular expression used to match URI's to this route.

read / write
method → String

The HTTP method this route responds to.

read / write
name → String

(Optional) - A name for this route.

read / write
path → String

The path this route is mounted on.

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

as(String name) → dynamic

Assigns a name to this Route.

makeUri([Map<String, dynamic> params]) → String

Generates a URI to this route with the given parameters.

middleware(handler) Route

Enables one or more handlers to be called whenever this route is visited.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
parseParameters(String requestPath) → Map

Extracts route parameters from a given path.

toString() → String

Returns a string representation of this object.

inherited