IOAdapter class
An Adapter implementation for dart:io
HttpServer.
This adapter bridges Relic with a standard Dart HTTP server, allowing Relic applications to handle HTTP requests and responses, as well as WebSocket connections.
Constructors
- IOAdapter.new(HttpServer _server)
- Creates an IOAdapter that wraps the provided io.HttpServer.
Properties
- address → InternetAddress
-
The io.InternetAddress the underlying server is listening on.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
The port number the underlying server is listening on.
no setter
-
requests
→ Stream<
AdapterRequest> -
A stream of incoming requests from the underlying source.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Gracefully shuts down the adapter.
override
-
connect(
covariant IOAdapterRequest request, WebSocketCallback callback) → Future< void> -
Establishes a web-socket connection for the given AdapterRequest.
override
-
hijack(
covariant IOAdapterRequest request, HijackCallback callback) → Future< void> -
Hijacks the connection associated with the AdapterRequest.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
respond(
covariant IOAdapterRequest request, Response response) → Future< void> -
Sends a Response back to the client for the given AdapterRequest.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited