Available in all subroutines.
this function selects the best matches from a string in the format of an
Accept-Language header's value in the listed languages using the algorithm
described in RFC 4647, Section 3.3.1.
This function takes the following parameters:
- a colon-separated list of languages available for the resource,
- a fallback return value,
- a string representing an
- the maximum number of matching languages to return.
The matches are comma-separated.
set bereq.http.Accept-Language =accept.language_filter_basic("en:de:fr:nl", "nl",req.http.Accept-Language, 2);
User contributed notes
We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.