bitz-server
2.0.3
lib
icap
request_header.h
1
/*
2
* C++ ICAP library
3
* Copyright (C) 2012 Uditha Atukorala
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*/
19
20
#ifndef ICAP_REQUEST_HEADER_H
21
#define ICAP_REQUEST_HEADER_H
22
23
#include "header.h"
24
25
#include <string>
26
#include <vector>
27
28
29
namespace
icap
{
30
31
class
RequestHeader
:
public
Header
{
32
public
:
33
34
struct
request_t
{
35
std::string method;
36
std::string uri;
37
std::string protocol;
38
};
39
40
RequestHeader
(
const
std::string &
raw_data
);
41
virtual
~
RequestHeader
();
42
47
const
std::string &method()
const
throw
();
48
53
const
std::string &uri()
const
throw
();
54
59
const
std::string &protocol()
const
throw
();
60
65
const
request_t
&
request
()
const
throw
();
66
71
const
std::string &
raw_data
()
const
throw
();
72
73
private
:
74
request_t
_request;
75
std::string _raw_data;
76
77
void
read_header(
const
std::string &raw_data )
throw
();
78
79
};
80
81
}
/* end of namespace icap */
82
83
#endif
/* !ICAP_REQUEST_HEADER_H */
84
icap::RequestHeader::request_t
Definition:
request_header.h:34
icap::RequestHeader
Definition:
request_header.h:31
icap::RequestHeader::request
const request_t & request() const
Definition:
request_header.cpp:65
icap::RequestHeader::raw_data
const std::string & raw_data() const
Definition:
request_header.cpp:70
icap
Definition:
lib/icap/common.h:26
icap::Header
Definition:
header.h:33
Generated on Sat Jan 12 2019 15:57:03 for bitz-server by
1.8.13