MockzillaHttpResponse class abstract
Created and returned by an endpoint handler in response to an incoming HTTP request.
- Annotations
-
- @freezed
Constructors
Properties
- body → String
-
no setterinherited
-
copyWith
→ $MockzillaHttpResponseCopyWith<
MockzillaHttpResponse> -
Create a copy of MockzillaHttpResponse
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
The response headers, defaults a single
Content-Type
header with a value ofapplication/json
.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The HTTP status to use for the response, defaults to 200 - OK.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited