code style cleanup;

pull/32/head
Bryan Biedenkapp 3 years ago
parent 8cc824ae87
commit 6f01647c6f

@ -45,8 +45,7 @@ namespace network
// //
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
struct RequestMatch : std::smatch struct RequestMatch : std::smatch {
{
/// <summary>Initializes a new instance of the RequestMatch structure.</summary> /// <summary>Initializes a new instance of the RequestMatch structure.</summary>
RequestMatch(const std::smatch& m, const std::string& c) : std::smatch(m), content(c) { /* stub */ } RequestMatch(const std::smatch& m, const std::string& c) : std::smatch(m), content(c) { /* stub */ }

@ -60,8 +60,7 @@ namespace network
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
template <typename RequestHandlerType> template <typename RequestHandlerType>
class ClientConnection class ClientConnection {
{
public: public:
/// <summary>Initializes a new instance of the ClientConnection class.</summary> /// <summary>Initializes a new instance of the ClientConnection class.</summary>
explicit ClientConnection(asio::ip::tcp::socket socket, RequestHandlerType& handler) : explicit ClientConnection(asio::ip::tcp::socket socket, RequestHandlerType& handler) :

@ -61,8 +61,7 @@ namespace network
// //
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
struct HTTPHeaders struct HTTPHeaders {
{
struct Header struct Header
{ {
std::string name; std::string name;

@ -60,8 +60,7 @@ namespace network
// This class implements the lexer for incoming payloads. // This class implements the lexer for incoming payloads.
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
class HTTPLexer class HTTPLexer {
{
public: public:
enum ResultType { GOOD, BAD, INDETERMINATE }; enum ResultType { GOOD, BAD, INDETERMINATE };

@ -69,8 +69,7 @@ namespace network
// HTTP client/server. // HTTP client/server.
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
struct HTTPPayload struct HTTPPayload {
{
/// <summary> /// <summary>
/// HTTP Status/Response Codes /// HTTP Status/Response Codes
/// </summary> /// </summary>

@ -59,8 +59,7 @@ namespace network
// This class implements the common handler for all incoming requests. // This class implements the common handler for all incoming requests.
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
class HTTPRequestHandler class HTTPRequestHandler {
{
public: public:
/// <summary>Initializes a new instance of the HTTPRequestHandler class.</summary> /// <summary>Initializes a new instance of the HTTPRequestHandler class.</summary>
explicit HTTPRequestHandler(const std::string& docRoot); explicit HTTPRequestHandler(const std::string& docRoot);

@ -66,8 +66,7 @@ namespace network
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
template <typename RequestHandlerType> template <typename RequestHandlerType>
class ServerConnection : public std::enable_shared_from_this<ServerConnection<RequestHandlerType>> class ServerConnection : public std::enable_shared_from_this<ServerConnection<RequestHandlerType>> {
{
typedef ServerConnection<RequestHandlerType> selfType; typedef ServerConnection<RequestHandlerType> selfType;
typedef std::shared_ptr<selfType> selfTypePtr; typedef std::shared_ptr<selfType> selfTypePtr;
typedef ServerConnectionManager<selfTypePtr> ConnectionManagerType; typedef ServerConnectionManager<selfTypePtr> ConnectionManagerType;

@ -56,8 +56,7 @@ namespace network
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
template<typename ConnectionPtr> template<typename ConnectionPtr>
class ServerConnectionManager class ServerConnectionManager {
{
public: public:
/// <summary>Initializes a new instance of the ServerConnectionManager class.</summary> /// <summary>Initializes a new instance of the ServerConnectionManager class.</summary>
ServerConnectionManager() { /* stub */ } ServerConnectionManager() { /* stub */ }

Loading…
Cancel
Save

Powered by TurnKey Linux.