IoHttpTransport class
dart:io 的 HttpClient(《4.实现与测试》第 3 节:需要控制跳转、流式上传,不依赖 http 包)。
- Implemented types
Constructors
- IoHttpTransport([HttpClient? client])
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
-
download(
HttpRequestData request, {DRCancelToken? cancel}) → Future< HttpStreamResponse> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
HttpRequestData request, {DRCancelToken? cancel}) → Future< HttpResponseData> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
upload(
UploadRequestData request, {DRCancelToken? cancel}) → Future< int> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited