<div><font face="arial, helvetica, sans-serif">I have 2 cowboy questions:</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">1. I am trying to parse the Accept header using...</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"> cowboy_http_req:parse_header('Accept', Req)</font></div><div><font face="arial, helvetica, sans-serif"><br>
</font></div><div><font face="arial, helvetica, sans-serif">The raw header is...</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><b id="internal-source-marker_0.756937091704458"><span style="font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"> {'Accept',<<"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8">>}</font></span></b></div>
<div><b><span style="font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></span></b></div><div><b><span style="font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">and the output is ...</font></span></b></div>
<div><span style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><b id="internal-source-marker_0.756937091704458"><span style="font-weight:normal;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"> [{{<<"text">>,<<"html">>,[]},1000,[]},<br class="kix-line-break">
{{<<"application">>,<<"xhtml+xml">>,[]},1000,[]},<br class="kix-line-break"> {{<<"application">>,<<"xml">>,[]},900,[]},<br class="kix-line-break">
{{<<"*">>,<<"*">>,[]},800,[]}]</font></span></b></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div>
<div><font face="arial, helvetica, sans-serif">What do all the parts of the tuple mean? (it is mainly the number that is piquing my curiosity)</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div>
<font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">2. I am looking to make a restful web interface using cowboy. The basic cowboy_http_protocol module with its dispatch table seems very nice for this, and along with its request parsing I have difficulty imagining what more I could need. W</font><span style="font-family:arial,helvetica,sans-serif">hat does the cowboy_http_rest module buy you? Note that t</span><span style="font-family:arial,helvetica,sans-serif">his is my first web interface in any language and I had trouble penetrating the webmachine documentation (I suspect knowing nothing about mochiweb is causing problems for me).</span></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks,</font></div><div><font face="arial, helvetica, sans-serif">Dan.</font></div>