DVHttpTransport class abstract
A thing that can put a request on the wire over one specific protocol.
Implementations do not negotiate across protocols; DVHttpFallbackClient does that by calling them in order. Keeping the two apart means a new transport only has to answer "can you speak this, and what happened", and the fallback rules stay in one place instead of once per backend.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
A name for diagnostics:
package:http,rust,fetch.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedProtocols
→ Set<
DVHttpProtocol> -
Protocols this transport can actually speak here — which depends on the
platform, not only on the implementation.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
DVHttpRequest request) → Future< DVHttpResponse> -
Sends
request, which is already pinned to a single protocol. -
stream(
DVHttpRequest request) → Future< DVHttpStreamedResponse> -
Sends
requestand yields the body as it arrives. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited