[Cppcms-users] Custom Headers in request()
Brought to you by:
artyom-beilis
From: Frank E. <fra...@an...> - 2010-11-28 15:37:04
|
hi, the cppcms::http::request class only provides access to predefined headers. now i try to implement CORS (http://www.w3.org/TR/cors/) in which case the browser sends 'Access-Control-Request-Method' and 'Access-Control-Request-Headers' headers whcih i cannot access using the existing methods (or am i mistaken?). would it be possible to make a method available which returns a map of all headers as sent by the browser? (something like std::map<std::string,std::string> cppcms::http::request::http_headers()) thanks frank -- Dipl.-Ing. (FH) Frank Enderle anamica UG (haftungsbeschränkt) Beinsteinerstr. 6 71334 Waiblingen Telefon: +49 151 14981091 Telefax: +49 7151 1335770 E-Mail: fra...@an... Internet: www.anamica.de Handelsregister: AG Stuttgart HRB 732357 Geschäftsführer: Yvonne Holzwarth, Frank Enderle |