acceptsJson

Whether the given Accept request-header value admits an application/json response — the single-JSON reply a plain POST request receives. Matching mirrors acceptsEventStream: an exact application/json token, the application/* subtype wildcard, or the */* full wildcard; quality and other ;-parameters are ignored. An empty value (no Accept) is permissive.

@safe
bool
acceptsJson
(
string accept
)