ffead.server.doc
Main Page
Classes
Files
File List
HttpResponseParser.h
1
/*
2
Copyright 2009-2012, Sumeet Chhetri
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
/*
17
* HttpResponseParser.h
18
*
19
* Created on: Nov 27, 2010
20
* Author: sumeet
21
*/
22
23
#ifndef HTTPRESPONSEPARSER_H_
24
#define HTTPRESPONSEPARSER_H_
25
#include "map"
26
#include "vector"
27
#include "sstream"
28
#include "StringUtil.h"
29
30
#include "CastUtil.h"
31
#include "stdio.h"
32
#include "fstream"
33
#include "iostream"
34
#include "Logger.h"
35
36
using namespace
std;
37
class
HttpResponseParser
{
38
map<string,string> headers;
39
static
string
*headernames;
40
string
content;
41
Logger
logger;
42
public
:
43
HttpResponseParser
();
44
string
getHeaderValue(
string
head)
45
{
46
return
headers[head];
47
}
48
string
getContent()
const
49
{
50
return
this->content;
51
}
52
HttpResponseParser
(
string
,
string
);
53
HttpResponseParser
(
string
vecstr);
54
virtual
~
HttpResponseParser
();
55
};
56
57
#endif
/* HTTPRESPONSEPARSER_H_ */
include
HttpResponseParser.h
Generated on Sun Mar 10 2013 11:01:55 for ffead.server.doc by
1.8.3.1