charlatanResponse function
CharlatanResponseBuilder
charlatanResponse({})
A function to build a CharlatanResponseBuilder
. The statusCode
defaults
to 200, the body
defaults to null, and the headers
defaults to empty.
Implementation
CharlatanResponseBuilder charlatanResponse({
int statusCode = 200,
Object? body,
Map<String, String> headers = const {},
}) =>
(request) => CharlatanHttpResponse(
statusCode: statusCode,
body: body,
headers: headers,
);