Skip to content

albertnadal/HttpAcceptParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

HttpAcceptParser

C++11 class for parsing HTTP 'Accept' headers. Implemented according to the RFC 7231 and 2616.

Example:

const auto selectedContentType = HttpAcceptParser::parse("*/*;q=0.5, text/xml;q=0.55, image/png;q=0", { "application/json", "image/png", "text/xml", "text/plain" });
assert(selectedContentType == "text/xml");

About

C++11 class for parsing HTTP 'Accept' headers. Implemented according to the RFC 7231 and 2616.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages