request_api library Null safety

Classes

RequestAPI

Extensions

HttpMethodExtensor

Functions

parseItem<T>(String data, ParserMethod<T> method) → T
parseList<T>(String data, ParserMethod<T> method) List<T>
printResponse({required String method, required String path, required int statusCode, required String data, required void logFunction(String)?}) → void
tryParse<T>(TryParserMethod<T> method) Future<T>

Enums

HttpMethod

Typedefs

ParserMethod<T> = T Function(Map<String, dynamic> data)
ProcessResponseMethod = Future<void> Function(Response response)
ProcessStreamedResponseMethod = Future<void> Function(StreamedResponse response)
RequestMethod = Future<Response> Function(Uri uri, dynamic body, Map<String, String> headers, Client?, bool useJsonEncode)
TryParserMethod<T> = FutureOr<T> Function()

Exceptions / Errors

NetworkError
ServerError