AuthEndpointHttpResponse class final

An explicit HTTP response returned by a portable plugin endpoint.

Most auth operations return JSON with status 200. Protocol plugins that require another success status, response headers, or an empty body can use this value without coupling themselves to a framework response class.

Constructors

AuthEndpointHttpResponse({required int statusCode, Object? body, Map<String, String> headers = const <String, String>{}})
Creates an explicit HTTP response with a valid statusCode.

Properties

body Object?
Response body, usually a JSON-compatible value.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
Response headers returned to the client.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
HTTP status code returned to the client.
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