wantsJson property
bool
get
wantsJson
Checks if request wants JSON.
Implementation
bool get wantsJson {
final accept = _raw.headers.value('accept') ?? '';
return accept.contains('application/json');
}