COSClient class

COS请求

Constructors

COSClient(COSConfig config)
factory

Properties

config COSConfig
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String url, {Map<String, String>? headers, Map<String, String>? queryParameters, Object? body}) Future<Response>
DELETE url 请求地址 headers 请求头 queryParameters 请求参数 body 请求体
get(String url, {Map<String, String>? headers, Map<String, String>? queryParameters}) Future<Response>
GET url 请求地址 headers 请求头 queryParameters 请求参数
HEAD url 请求地址 headers 请求头 queryParameters 请求参数
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
options(String url, {Map<String, String>? headers, Map<String, String>? queryParameters}) Future<Response>
OPTIONS url 请求地址 headers 请求头 queryParameters 请求参数
post(String url, {Map<String, String>? headers, Object? body}) Future<Response>
POST url 请求地址 headers 请求头 body 请求体
put(String url, {Map<String, String>? headers, Map<String, String>? queryParameters, Object? body}) Future<Response>
PUT url 请求地址 queryParameters 请求参数 body 请求体
toString() String
A string representation of this object.
inherited

Operators

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