Skip to content

Commit 27a107e

Browse files
author
Sebastiano Merlino
committed
Added forgotten modded_request.hpp file
1 parent 3dfe88b commit 27a107e

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/httpserver/modded_request.hpp

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
This file is part of libhttpserver
3+
Copyright (C) 2011 Sebastiano Merlino
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library 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 GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18+
19+
*/
20+
21+
#if !defined (_HTTPSERVER_HPP_INSIDE_) && !defined (HTTPSERVER_COMPILATION)
22+
#error "Only <httpserver.hpp> or <httpserverpp> can be included directly."
23+
#endif
24+
25+
#ifndef _MODDED_REQUEST_HPP_
26+
#define _MODDED_REQUEST_HPP_
27+
28+
#include <string>
29+
30+
namespace httpserver
31+
{
32+
33+
class webserver;
34+
class http_request;
35+
class http_request_builder;
36+
37+
struct modded_request
38+
{
39+
struct MHD_PostProcessor *pp;
40+
std::string* complete_uri;
41+
std::string* st_url;
42+
webserver* ws;
43+
void(http_resource::*callback)(const http_request&, http_response**);
44+
http_request* dhr;
45+
http_response* dhrs;
46+
http_request_builder* request_builder;
47+
bool second;
48+
};
49+
50+
};
51+
52+
#endif //_MODDED_REQUEST_HPP_

0 commit comments

Comments
 (0)