Package src :: Package com :: Package deviceatlas :: Package device :: Module accept_language_parser :: Class AcceptLanguageParser
[frames] | no frames]

Class AcceptLanguageParser

Parses the Accept-Language header.

@author DeviceAtlas Limited

Static Methods
 
parse(accept_language)
Returns the lang locale with the highest weight from the Accept-Language header.:param accept_language: :return:
Class Variables
  LANG_LOCALE_WEIGHT_SEPARATOR = ';'
  LANG_LOCALE_SEPARATOR = '-'
  LANG_LOCALE_LENGTH = 5