HttpManager class
http请求
Constructors
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
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
请求urlparam
请求参数header
外加头isNeedToken
是否需要tokenoptionMetod
请求类型 post、getnoTip
是否需要返回错误信息 默认不需要needSign
是否需要Sign校验 默认需要needError
是否需要错误提示
Constants
- CONTENT_TYPE_FORM → const String
- CONTENT_TYPE_JSON → const String