http/http_response_handler
library
Classes
-
JsonBytes
-
A JSON body that is already encoded, so it is not encoded twice
(
ETag hashes the bytes first). For internal use.
Functions
-
encodeJson(dynamic payload)
→ List<int>
-
payload as JSON bytes, like the response sends it
-
httpResponseHandler(dynamic payload, HttpRequest request)
→ dynamic
-
-
responseDataHandler(dynamic payload, HttpRequest request)
→ void
-
Handle response for different types of data
such as string, stream, file, Model, List, encodable.
-
the value of header
name, or null when it is missing or sent more
than once. HttpHeaders.value throws (a 500) on a repeated header.