HttpManager class

http请求

Constructors

HttpManager()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

baseUrl String
getter/setter pair
optionParams Map<String, String?>
getter/setter pair

Static Methods

requestData(dynamic url, dynamic param, Map<String, String>? header, {bool isNeedToken = true, String optionMetod = "post", dynamic noTip = false, dynamic needSign = true, dynamic needError = true}) → dynamic
发起网络请求 url 请求url param 请求参数 header 外加头 isNeedToken 是否需要token optionMetod 请求类型 post、get noTip 是否需要返回错误信息 默认不需要 needSign 是否需要Sign校验 默认需要 needError 是否需要错误提示

Constants

CONTENT_TYPE_FORM → const String
CONTENT_TYPE_JSON → const String