X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fhttp%2Fheader.h;fp=source%2Fhttp%2Fheader.h;h=202b844110b1044d360eec00baaa30d6db8f94ad;hp=0000000000000000000000000000000000000000;hb=451c140747bef1829d55d20a33dd3543b9ab8c98;hpb=afb8690a16f16890c322bdaf752574e4428a9c02 diff --git a/source/http/header.h b/source/http/header.h new file mode 100644 index 0000000..202b844 --- /dev/null +++ b/source/http/header.h @@ -0,0 +1,35 @@ +#ifndef MSP_HTTP_HEADER_H_ +#define MSP_HTTP_HEADER_H_ + +#include +#include +#include + +namespace Msp { +namespace Http { + +class Message; + +struct Header +{ + struct Value + { + std::string value; + std::map parameters; + }; + + std::string name; + std::string raw_value; + std::vector values; + + Header() { } + Header(const Message &, const std::string &); + Header(const std::string &, const std::string &); + + void parse(); +}; + +} // namespace Http +} // namespace Msp + +#endif