PDTransport class abstract

网络传输层抽象接口。

通过替换不同的 PDTransport 实现,可以在不影响上层业务 API 的情况下 替换底层网络库(例如 Dio、HttpClient 等)。

Constructors

PDTransport()
创建一个 transport。
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send({required PDRequest request, PDCancelToken? cancelToken}) Future<PDTransportResponse>
发送请求并返回响应。
toString() String
A string representation of this object.
inherited

Operators

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