YmHttp class

网络请求管理类

Constructors

YmHttp()
factory

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

get(String url, Map<String, dynamic> params, {required Function success, required Function error, required Function complete}) → dynamic
get请求
init() → dynamic
构造
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, Map<String, dynamic> params, {required Function success, required Function error, required Function complete}) → dynamic
post json请求
postFile(String url, Map<String, dynamic> params, String filePath, Uint8List fileBytes, Stream stream, {required Function success, required Function error, required Function complete}) → dynamic
上传文件 web
postForm(String url, Map<String, dynamic> params, {required Function success, required Function error, required Function complete}) → dynamic
post请求
setHeader(Map<String, String> params) → dynamic
设置公共请求头
toString() String
A string representation of this object.
inherited

Operators

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