HttpRequestExt extension

Extensions for HttpRequest

on

Methods

findToken() Future<String?>
getBody() Future<Map<String, dynamic>>
Get body map from response
getInt() int
Get request int value
getString() String
Get request string value
removeSessionCookie() → void
Remove session cookie
route(Method method) Future<bool>
Finding an Appropriate Method with Authorization Check
setSessionCookie(UserModel user) → void
Add session cookie
writeJson(Object? object) → void
Write json with pretty output
writeJsonWithCode(int code, Object? object) → void
Write json with pretty output and set code