ServerRule class
Represents a rule for processing HTTP requests.
A rule consists of a pattern and a handler. If the pattern matches the request, then the handler is invoked to process the request.
Rules are added to a ServerPipeline, and piplelines are added to a Server.
Constructors
- ServerRule(String pathPattern, RequestHandler handler)
- Constructor. [...]
Properties
- handler ↔ RequestHandler
-
The request handler callback method.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
toString(
) → String -
Prints the pattern
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited