ExchangeEndState mixin base
How an exchange ended, recorded once, with done for a caller that asked before then.
An adapter's exchange mixes this in and calls completeEnd from every path that ends the exchange.
- Implemented types
Properties
-
cancelled
→ Future<
void> -
Completes when the peer went away or reset the stream before the
response finished.
no setterinherited
-
done
→ Future<
ExchangeEnd> -
Completes when the exchange has fully finished: body flushed, upgraded,
hijacked, aborted, or cancelled by the peer.
no setteroverride
- end → ExchangeEnd?
-
How the exchange ended, or null while it is in flight.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- protocol → HttpProtocol
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
abort(
) → void -
Drops the exchange without a response.
inherited
-
completeEnd(
ExchangeEnd end) → bool -
Records
end, unless the exchange already ended. -
hijack(
) → FutureOr< StreamChannel< Uint8List> > -
Takes over the raw byte stream of the connection, from the end of
the request on.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
respond(
Response response) → FutureOr< void> -
Sends
response.inherited -
toRequest(
RequestFactory create) → Request -
Converts the adapter's request into a Request built with
create.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
upgradeWebSocket(
String acceptKey) → FutureOr< RelicWebSocket> -
Performs the WebSocket handshake and hands back the socket.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited