C++ library for parsing HTTP Accept* headers

  amazon-web-services, c++, http-headers

Context: Building an AWS Lambda.

I am currently using the aws-sdk-cpp to build my AWS lambda. I’d like to control the behavior of my AWS Lambda based on the HTTP "Accept:" headers (I can deal with Accept-Encoding, Accept-Charset later on).

Is there a C or C++ open-source library out there that can help me parse HTTP Accept: headers. It should handle multi-values mime-types and qvalue. For example:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Source: Windows Questions C++