forked from cpp-netlib/cpp-netlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'http-client-refactoring'
- Loading branch information
Showing
281 changed files
with
10,041 additions
and
8,611 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ Testing | |
*.gch | ||
libs/mime/test/mime-roundtrip | ||
*.a | ||
bin/ | ||
tests/ | ||
_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
#ifndef BOOST_NETWORK_CONSTANTS_HPP_20111008 | ||
#define BOOST_NETWORK_CONSTANTS_HPP_20111008 | ||
|
||
// Copyright 2011 Dean Michael Berris <dberris@google.com>. | ||
// Copyright 2011 Google, Inc. | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#include <boost/network/constants.hpp> | ||
#include <boost/network/version.hpp> | ||
|
||
namespace boost { namespace network { | ||
|
||
char const * constants::crlf() { | ||
static char crlf_[] = "\r\n"; | ||
return crlf_; | ||
} | ||
|
||
char const * constants::dot() { | ||
static char dot_[] = "."; | ||
return dot_; | ||
} | ||
|
||
char constants::dot_char() { return '.'; } | ||
|
||
char const * constants::http_slash() { | ||
static char http_slash_[] = "HTTP/"; | ||
return http_slash_; | ||
} | ||
|
||
char const * constants::space() { | ||
static char space_[] = {' ', 0}; | ||
return space_; | ||
} | ||
|
||
char constants::space_char() { return ' '; } | ||
|
||
char const * constants::slash() { | ||
static char slash_[] = {'/', 0}; | ||
return slash_; | ||
} | ||
|
||
char constants::slash_char() { return '/'; } | ||
|
||
char const * constants::host() { | ||
static char host_[] = {'H', 'o', 's', 't', 0}; | ||
return host_; | ||
} | ||
|
||
char const * constants::colon() { | ||
static char colon_[] = {':', 0}; | ||
return colon_; | ||
} | ||
|
||
char constants::colon_char() { return ':'; } | ||
|
||
char const * constants::accept() { | ||
static char accept_[] = {'A', 'c', 'c', 'e', 'p', 't', 0}; | ||
return accept_; | ||
} | ||
|
||
char const * constants::default_accept_mime() { | ||
static char mime_[] = { | ||
'*', '/', '*', 0 | ||
}; | ||
return mime_; | ||
} | ||
|
||
char const * constants::accept_encoding() { | ||
static char accept_encoding_[] = { | ||
'A','c','c','e','p','t','-','E','n','c','o','d','i','n','g',0 | ||
}; | ||
return accept_encoding_; | ||
} | ||
|
||
char const * constants::default_accept_encoding() { | ||
static char default_accept_encoding_[] = { | ||
'i','d','e','n','t','i','t','y',';','q','=','1','.','0',',',' ','*',';','q','=','0',0 | ||
}; | ||
return default_accept_encoding_; | ||
} | ||
|
||
char const * constants::user_agent() { | ||
static char user_agent_[] = { | ||
'U','s','e','r','-','A','g','e','n','t',0 | ||
}; | ||
return user_agent_; | ||
} | ||
|
||
char const * constants::cpp_netlib_slash() { | ||
static char cpp_netlib_slash_[] = { | ||
'c','p','p','-','n','e','t','l','i','b','/',0 | ||
}; | ||
return cpp_netlib_slash_; | ||
} | ||
|
||
char constants::question_mark_char() { | ||
return '?'; | ||
} | ||
|
||
char constants::hash_char() { | ||
return '#'; | ||
} | ||
|
||
char const * constants::connection() { | ||
static char connection_[] = "Connection"; | ||
return connection_; | ||
} | ||
|
||
char const * constants::close() { | ||
static char close_[] = "close"; | ||
return close_; | ||
} | ||
|
||
char const * constants::https() { | ||
static char https_[] = "https"; | ||
return https_; | ||
} | ||
|
||
char const * constants::default_user_agent() { | ||
static char user_agent_[] = "cpp-netlib/" BOOST_NETLIB_VERSION; | ||
return user_agent_; | ||
} | ||
|
||
} /* network */ | ||
|
||
} /* boost */ | ||
|
||
#endif /* BOOST_NETWORK_CONSTANTS_HPP_20111008 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#ifndef BOOST_NETWORK_INCLUDE_HTTP_SERVER_HPP_ | ||
#define BOOST_NETWORK_INCLUDE_HTTP_SERVER_HPP_ | ||
|
||
// Copyright 2010 Dean Michael Berris | ||
// Copyright 2010-2012 Dean Michael Berris <dberris@google.com>. | ||
// Copyright 2012 Google, Inc. | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
// | ||
// This is the modular include file for using the HTTP Client | ||
|
||
#include <boost/asio/io_service.hpp> | ||
#include <boost/network/protocol/http/server.hpp> | ||
#include <boost/network/utils/thread_pool.hpp> | ||
#include <boost/network/detail/debug.hpp> | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.