Skip to content

Commit 4b4380c

Browse files
author
Sebastiano Merlino
committed
Removed useless forward declaration
1 parent 8feead7 commit 4b4380c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/httpserver/http_response.hpp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
1515
You should have received a copy of the GNU Lesser General Public
1616
License along with this library; if not, write to the Free Software
17-
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
1818
USA
1919
*/
2020

@@ -35,7 +35,6 @@ namespace httpserver
3535
{
3636

3737
class webserver;
38-
class http_response;
3938
struct cache_entry;
4039

4140
namespace http
@@ -63,7 +62,7 @@ class bad_caching_attempt: public std::exception
6362
/**
6463
* Class representing an abstraction for an Http Response. It is used from classes using these apis to send information through http protocol.
6564
**/
66-
class http_response
65+
class http_response
6766
{
6867
public:
6968
/**
@@ -76,7 +75,7 @@ class http_response
7675
http_response
7776
(
7877
const T* response_type = 0x0,
79-
const std::string& content = "",
78+
const std::string& content = "",
8079
int response_code = 200,
8180
const std::string& content_type = "text/plain",
8281
bool autodelete = true,
@@ -352,7 +351,7 @@ class http_response
352351
this->closure_data = closure_data;
353352
}
354353
protected:
355-
typedef details::binders::functor_two<MHD_Response**,
354+
typedef details::binders::functor_two<MHD_Response**,
356355
webserver*, void> get_raw_response_t;
357356

358357
typedef details::binders::functor_one<MHD_Response*,
@@ -393,10 +392,10 @@ class http_response
393392
void get_raw_response_str(MHD_Response** res, webserver* ws = 0x0);
394393
void get_raw_response_file(MHD_Response** res, webserver* ws = 0x0);
395394
void get_raw_response_switch_r(MHD_Response** res, webserver* ws = 0x0);
396-
395+
397396
void get_raw_response_lp_receive(MHD_Response** res,
398397
webserver* ws = 0x0);
399-
398+
400399
void get_raw_response_lp_send(MHD_Response** res, webserver* ws = 0x0);
401400
void get_raw_response_cache(MHD_Response** res, webserver* ws = 0x0);
402401
void get_raw_response_deferred(MHD_Response** res, webserver* ws = 0x0);
@@ -517,8 +516,8 @@ class http_byte_response : public http_response
517516
const std::string& content_type = "text/plain",
518517
bool autodelete = true
519518
): http_response(
520-
this, std::string(content, content_length),
521-
response_code, content_type, autodelete)
519+
this, std::string(content, content_length),
520+
response_code, content_type, autodelete)
522521
{
523522
}
524523
private:
@@ -553,7 +552,7 @@ class http_basic_auth_fail_response : public http_response
553552
const std::string& content_type = "text/plain",
554553
bool autodelete = true,
555554
const std::string& realm = ""
556-
) : http_response(this, content, response_code,
555+
) : http_response(this, content, response_code,
557556
content_type, autodelete, realm)
558557
{
559558
}
@@ -578,7 +577,7 @@ class http_digest_auth_fail_response : public http_response
578577
bool reload_nonce = false
579578
) : http_response(this, content, response_code,
580579
content_type, autodelete, realm, opaque, reload_nonce)
581-
{
580+
{
582581
}
583582

584583
http_digest_auth_fail_response(const http_response& b) :
@@ -611,7 +610,7 @@ class switch_protocol_response : public http_response
611610
}
612611

613612
switch_protocol_response(const http_response& b) : http_response(b)
614-
{
613+
{
615614
}
616615
private:
617616
friend class webserver;
@@ -707,7 +706,7 @@ class deferred_response : public http_response
707706
virtual ssize_t cycle_callback(const std::string& buf);
708707
private:
709708
friend class webserver;
710-
friend ssize_t details::cb(void*, uint64_t, char*, size_t);
709+
friend ssize_t details::cb(void*, uint64_t, char*, size_t);
711710
};
712711

713712
};

0 commit comments

Comments
 (0)