PeerExtractable class final

Extracts the connection information for this request.

shelf_io stores it under shelf.io.connection_info. Requests built in tests, or served by another adapter, reject with 500 because there is no connection to report on.

Implemented types

Constructors

PeerExtractable()
Reads the connection information.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

extract(Request request) Future<Result<PeerInfo, Rejection>>
Produces the value, or the rejection that stops the handler.
override
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

Constants

contextKey → const String
The context key shelf_io writes connection information to.