aboutsummaryrefslogtreecommitdiff
path: root/zenhttp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-09 20:46:22 +0200
committerStefan Boberg <[email protected]>2021-09-09 20:46:22 +0200
commit46aa14744ba72873975d288b568fa3b15d196a78 (patch)
tree335055510cd45ef033b8b7565e9123f2b6887ce1 /zenhttp
parentMerge from main (diff)
downloadzen-46aa14744ba72873975d288b568fa3b15d196a78.tar.xz
zen-46aa14744ba72873975d288b568fa3b15d196a78.zip
clang-format
Diffstat (limited to 'zenhttp')
-rw-r--r--zenhttp/httpnull.cpp4
-rw-r--r--zenhttp/httpnull.h6
-rw-r--r--zenhttp/httpserver.cpp2
-rw-r--r--zenhttp/httpsys.cpp8
-rw-r--r--zenhttp/httpsys.h4
-rw-r--r--zenhttp/include/zenhttp/zenhttp.h2
6 files changed, 17 insertions, 9 deletions
diff --git a/zenhttp/httpnull.cpp b/zenhttp/httpnull.cpp
index 571c4241c..57cba13d3 100644
--- a/zenhttp/httpnull.cpp
+++ b/zenhttp/httpnull.cpp
@@ -1,7 +1,9 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
#include "httpnull.h"
-#include <zencore/logging.h>
#include <conio.h>
+#include <zencore/logging.h>
namespace zen {
diff --git a/zenhttp/httpnull.h b/zenhttp/httpnull.h
index 9cec33c98..b15b1b123 100644
--- a/zenhttp/httpnull.h
+++ b/zenhttp/httpnull.h
@@ -1,13 +1,15 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
#pragma once
-#include <zenhttp/httpserver.h>
#include <zencore/thread.h>
+#include <zenhttp/httpserver.h>
namespace zen {
/**
* @brief Null implementation of "http" server. Does nothing
-*/
+ */
class HttpNullServer : public HttpServer
{
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp
index 3999b3b6c..f281185b7 100644
--- a/zenhttp/httpserver.cpp
+++ b/zenhttp/httpserver.cpp
@@ -2,8 +2,8 @@
#include <zenhttp/httpserver.h>
-#include "httpsys.h"
#include "httpnull.h"
+#include "httpsys.h"
#include <zencore/compactbinary.h>
#include <zencore/compactbinarypackage.h>
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index be538e7f7..471a8f80a 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -7,8 +7,8 @@
#if ZEN_WITH_HTTPSYS
-#include <conio.h>
-#pragma comment(lib, "httpapi.lib")
+# include <conio.h>
+# pragma comment(lib, "httpapi.lib")
std::wstring
UTF8_to_wstring(const char* in)
@@ -1219,12 +1219,12 @@ InitialRequestHandler::HandleCompletion(ULONG IoResult, ULONG_PTR NumberOfBytesT
}
//////////////////////////////////////////////////////////////////////////
-//
+//
// HttpServer interface implementation
//
void
-HttpSysServer::Initialize(int BasePort)
+HttpSysServer::Initialize(int BasePort)
{
using namespace std::literals;
diff --git a/zenhttp/httpsys.h b/zenhttp/httpsys.h
index ec8964f13..7c4e303ce 100644
--- a/zenhttp/httpsys.h
+++ b/zenhttp/httpsys.h
@@ -1,3 +1,5 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
#pragma once
#include <zenhttp/httpserver.h>
@@ -5,7 +7,7 @@
#ifndef ZEN_WITH_HTTPSYS
# if ZEN_PLATFORM_WINDOWS
# define ZEN_WITH_HTTPSYS 1
-#else
+# else
# define ZEN_WITH_HTTPSYS 0
# endif
#endif
diff --git a/zenhttp/include/zenhttp/zenhttp.h b/zenhttp/include/zenhttp/zenhttp.h
index da4f4cbe8..c6ec92e7c 100644
--- a/zenhttp/include/zenhttp/zenhttp.h
+++ b/zenhttp/include/zenhttp/zenhttp.h
@@ -1,3 +1,5 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
#pragma once
#include <zencore/zencore.h>