blob: 63cfea1b74d0a35d4237d2fff320768541d8810b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef HTTPHEADER_H
#define HTTPHEADER_H
#include <string>
#include <map>
enum HTTPStatus { HTTP_OK, HTTP_ERROR };
class HTTPSClient;
class HTTPHeader
{
friend class HTTPSClient;
public :
HTTPHeader();
std::string getField(const std::string& name);
int getBodyLength();
private :
HTTPStatus _status;
std::map<std::string, std::string> _fields;
};
#endif
|