WebTransportSessionRequest class final
An incoming session request that the application has to accept or reject.
Properties
-
:authorityof the request.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
All request headers.
no setter
- origin → String?
-
originheader, when present.no setter - path → String
-
:pathof the request.no setter - remoteAddress → String
-
Peer IP address.
no setter
- remotePort → int
-
Peer UDP port.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userAgent → String?
-
user-agentheader, when present.no setter
Methods
-
accept(
{Map< String, String> ? headers}) → Future<NativeSession> - Accepts the request, returning the server side of the session.
-
dispose(
) → void - Releases the handle without answering (the peer sees a hangup).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reject(
{int statusCode = 403}) → Future< void> - Rejects the request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited