TestRequestContext class
A context used to test Dart Frog handlers.
Constructors
Properties
- basePath → String
-
The base path of the request.
final
- body → Object?
-
The request body.
final
- context → RequestContext
-
Returns the mocked request context.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
The request headers.
final
- method → HttpMethod
-
The request method.
final
- path → String
-
The route path.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
provide<
T> (T dependency) → void -
Provides a dependency of the type
T
to the request context. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited