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>
RequestMatch(const std::smatch& m, const std::string& c) : std::smatch(m), content(c) { /* stub */ }

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

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

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

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

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

@ -66,8 +66,7 @@ namespace network
// ---------------------------------------------------------------------------
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 std::shared_ptr<selfType> selfTypePtr;
typedef ServerConnectionManager<selfTypePtr> ConnectionManagerType;

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

Loading…
Cancel
Save

Powered by TurnKey Linux.