Paste number 50403: I rule.

Paste number 50403: I rule.
Pasted by: noss
When:1 year, 7 months ago
Share:Tweet this! | http://paste.lisp.org/+12W3
Channel:#erlang
Paste contents:
Raw Source | XML | Display As
61> A1.
"text/plain; q=0.5, text/html,text/x-dvi; q=0.8, text/x-c"
62> iserve:parse_accept(A1).
[{accept,"text/x-c",1000,[]},
 {accept,"text/x-dvi",800,[]},
 {accept,"text/html",1000,[]},
 {accept,"text/plain",500,[]}]
63> A2.
"text/*, text/html, text/html;level=1, */*"
64> iserve:parse_accept(A2).
[{accept,"*/*",1000,[]},
 {accept,"text/html",1000,[{"level","1"}]},
 {accept,"text/html",1000,[]},
 {accept,"text/*",1000,[]}]


A bit embarassing that it is 80 lines though.

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.