HttpFormatter constructor
HttpFormatter({})
Optionally can add custom LogPrinter
Implementation
HttpFormatter(
{bool includeRequest = true,
bool includeRequestHeaders = true,
bool includeRequestQueryParams = true,
bool includeRequestBody = true,
bool includeResponse = true,
bool includeResponseHeaders = true,
bool includeResponseBody = true,
Logger? logger,
HttpLoggerFilter? httpLoggerFilter})
: _includeRequest = includeRequest,
_includeRequestHeaders = includeRequestHeaders,
_includeRequestQueryParams = includeRequestQueryParams,
_includeRequestBody = includeRequestBody,
_includeResponse = includeResponse,
_includeResponseHeaders = includeResponseHeaders,
_includeResponseBody = includeResponseBody,
_logger = logger ??
Logger(
printer: PrettyPrinter(
methodCount: 0,
colors: true,
printTime: false,
printEmojis: false)),
_httpLoggerFilter = httpLoggerFilter;