Dear list,

to react on accept-headers, one must:
- parse the request header to a tcl-friendly format, e.g. a list.
Is there any code available ?

I would write a function like:

# headers(Accept-Language) = de-de,de;q=0.8,en-us;q=0.5,en;q=0.3

% accept_list $headers(Accept-Language)
de-de de en-us en *

The result is ordered by the q element.
The * signifies that there was no "*;q=0.0" and thus any others are
implicitly allowed.

Is this a good idea ?

Thank you,
Harald

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscr...@tcl.apache.org
For additional commands, e-mail: rivet-dev-h...@tcl.apache.org

Reply via email to