OptionsMethod class
Annotation to declare a method as request handler method that processes OPTIONS requests.
- Implemented types
Constructors
-
OptionsMethod({String path = '', Map<
String, String> pathRegEx, int statusCode = 200, String mimeType, String charset = kDefaultCharset, ResponseProcessor responseProcessor}) -
const
Properties
- charset → String
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
methods
→ List<
String> -
Methods handled by the route
final
- mimeType → String
-
final
- path → String
-
Path of the route
final
-
pathRegEx
→ Map<
String, String> -
Map of regular expression matchers for specific path segment
final
- responseProcessor → ResponseProcessor
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- statusCode → int
-
final
Methods
-
cloneWith(
{String path, List< String> methods, Map<String, String> pathRegEx, int statusCode, String mimeType, String charset = kDefaultCharset, ResponseProcessor responseProcessor}) → HttpMethod -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited