]> git.tdb.fi Git - libs/net.git/blob - source/http/submessage.cpp
Implement an asynchronous name resolver class
[libs/net.git] / source / http / submessage.cpp
1 #include "submessage.h"
2
3 using namespace std;
4
5 namespace Msp {
6 namespace Http {
7
8 string SubMessage::str() const
9 {
10         return str_common();
11 }
12
13 SubMessage SubMessage::parse(const string &str)
14 {
15         SubMessage result;
16
17         string::size_type pos = result.parse_headers(str);
18         result.content = str.substr(pos);
19
20         return result;
21 }
22
23 } // namespace Http
24 } // namespace Msp