Class: ParsedHeaderValues

vertx-web-js/parsed_header_values~ ParsedHeaderValues

new ParsedHeaderValues()

A container with the request's headers that are meaningful enough to be parsed Contains:
  • Accept -> MIME header, parameters and sortable
  • Accept-Charset -> Parameters and sortable
  • Accept-Encoding -> Parameters and sortable
  • Accept-Language -> Parameters and sortable
  • Content-Type -> MIME header and parameters
Source:

Methods

accept() → {Array.<MIMEHeader>}

Source:
Returns:
List of MIME values in the Accept header
Type
Array.<MIMEHeader>

acceptCharset() → {Array.<ParsedHeaderValue>}

Source:
Returns:
List of charset values in the Accept-Charset header
Type
Array.<ParsedHeaderValue>

acceptEncoding() → {Array.<ParsedHeaderValue>}

Source:
Returns:
List of encofing values in the Accept-Encoding header
Type
Array.<ParsedHeaderValue>

acceptLanguage() → {Array.<LanguageHeader>}

Source:
Returns:
List of languages in the Accept-Language header
Type
Array.<LanguageHeader>

contentType() → {MIMEHeader}

Source:
Returns:
MIME value in the Content-Type header
Type
MIMEHeader