Import
Functions
accepts()
Determine the best match for the given Accept header.Context
required
The context object
string | string[]
required
The content type(s) to match against
string | null
The best matching content type or null if no match
Content negotiation based on Accept headers