DioNetKitTransport class final

NetKitTransport backed by a private Dio instance.

This is the default transport of NetKitManager and the built-in RawHttpClient. The Dio instance has no interceptors, accepts every status code, never follows redirects unless the request asks for it, and never implies a content type. Dio exceptions are converted to RawHttpException; Dio types do not appear in the transport contract.

Import package:net_kit/net_kit_dio.dart to construct it; application code should depend on NetKitTransport / RawHttpClient and choose the implementation only at the composition root.

Implemented types

Constructors

DioNetKitTransport({HttpClientAdapter? httpClientAdapter, bool browserWithCredentials = false})
Creates a transport over a new Dio instance.

Properties

dio → Dio
The owned Dio instance, for adapter-level configuration or Dio-based test doubles. Do not add interceptors that change status handling.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close({bool force = false}) → void
Releases the underlying HTTP client. In-flight requests fail when force is true.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(RawHttpRequest request) → Future<RawHttpResponse>
Sends request and buffers the whole response body in memory.
override
sendStreamed(RawHttpRequest request) → Future<RawHttpStreamedResponse>
Streams the response without going through Dio.fetch.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited