HttpUtil class
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
Static Methods
-
delete(String url)
→ Future<Map<String, dynamic>>
-
-
get(String url)
→ Future<Map<String, dynamic>>
-
-
getAppId()
→ String?
-
-
getNotification(String url)
→ Future<Map<String, dynamic>>
-
-
getSessionId()
→ String?
-
-
getSessionToken()
→ String?
-
-
init(String appId)
→ void
-
-
initSessionData(String userId)
→ Future<Map<String, dynamic>>
-
-
makeTPException(Response? response)
→ TPException
-
-
postJson(String url, Object body)
→ Future<Map<String, dynamic>>
-
-
postMultipart(String url, Map<String, dynamic> jsonBody, File? file)
→ Future<Map<String, dynamic>>
-
-
put(String url, Object body)
→ Future<Map<String, dynamic>>
-
-
removeAllSessionData()
→ Future<void>
-
-
setSessionData(String userId, String sessionToken, String sessionId)
→ Future<void>
-
-
ws(String url)
→ Future<WebSocket?>
-