CharlatanHttpResponse class

A type representing a HTTP response.

Constructors

CharlatanHttpResponse({Object? body, int statusCode = 200, Map<String, String> headers = const {}})
A type representing a HTTP response.

Properties

body Object?
The body of the HTTP response
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The headers for the HTTP response, defaults to empty
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The status code of the HTTP response, defaults to 200
final

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