getCharset
Function: getCharset()
getCharset(
contentType?):string
Defined in: packages/core/src/contexts/httpcontext.ts:21
Extract the charset parameter from a Content-Type header value
The parameter name is matched case-insensitively, surrounding quotes and whitespace are removed
Parameters
contentType?
string
the Content-Type header value
Returns
string
the charset label or undefined if none is present