code: function getCharset (req) {
    try {
      return contentType.parse(req).parameters.charset.toLowerCase()
    } catch (e) {
      return undefined
    }
  }
docs: Get the charset of a request.
  
  @param {object} req
  @api private