decode http header value fully with boost spirit
问题 Once again, I find myself reaching for boost spirit. Once again I find myself defeated by it. A HTTP header value takes the general form: text/html; q=1.0, text/*; q=0.8, image/gif; q=0.6, image/jpeg; q=0.6, image/*; q=0.5, */*; q=0.1 i.e. value *OWS [; *OWS name *OWS [= *OWS possibly_quoted_value] *OWS [...]] *OWS [ , <another value> ...] so in my mind, this header decodes to: value[0]: text/html params: name : q value : 1.0 value[1]: text/* params: name : q value : 0.8 ... and so on. I am