X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fhttp%2Fsubmessage.cpp;fp=source%2Fhttp%2Fsubmessage.cpp;h=05b1a302655768a9aa65a536c4b01b1811f3d3fe;hp=0000000000000000000000000000000000000000;hb=049fc42b671d623815408c3658a450b73063fec5;hpb=451c140747bef1829d55d20a33dd3543b9ab8c98 diff --git a/source/http/submessage.cpp b/source/http/submessage.cpp new file mode 100644 index 0000000..05b1a30 --- /dev/null +++ b/source/http/submessage.cpp @@ -0,0 +1,24 @@ +#include "submessage.h" + +using namespace std; + +namespace Msp { +namespace Http { + +string SubMessage::str() const +{ + return str_common(); +} + +SubMessage SubMessage::parse(const string &str) +{ + SubMessage result; + + string::size_type pos = result.parse_headers(str); + result.content = str.substr(pos); + + return result; +} + +} // namespace Http +} // namespace Msp