aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/http/misc
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/misc')
-rw-r--r--library/cpp/http/misc/httpdate.cpp12
-rw-r--r--library/cpp/http/misc/httpdate.h2
-rw-r--r--library/cpp/http/misc/httpreqdata.h36
3 files changed, 25 insertions, 25 deletions
diff --git a/library/cpp/http/misc/httpdate.cpp b/library/cpp/http/misc/httpdate.cpp
index 719f100451..4a3031bbf4 100644
--- a/library/cpp/http/misc/httpdate.cpp
+++ b/library/cpp/http/misc/httpdate.cpp
@@ -26,14 +26,14 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-#include <util/system/defaults.h>
+#include <util/system/defaults.h>
#include <sys/types.h>
-#include <cctype>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <ctime>
+#include <cctype>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <ctime>
#include <util/system/compat.h> /* stricmp */
#include <util/system/yassert.h>
diff --git a/library/cpp/http/misc/httpdate.h b/library/cpp/http/misc/httpdate.h
index e9583b4230..04876f38fe 100644
--- a/library/cpp/http/misc/httpdate.h
+++ b/library/cpp/http/misc/httpdate.h
@@ -3,7 +3,7 @@
#include <util/datetime/base.h>
#include <util/generic/string.h>
-#include <ctime>
+#include <ctime>
#define BAD_DATE ((time_t)-1)
diff --git a/library/cpp/http/misc/httpreqdata.h b/library/cpp/http/misc/httpreqdata.h
index ae2652ac42..16e59c4d78 100644
--- a/library/cpp/http/misc/httpreqdata.h
+++ b/library/cpp/http/misc/httpreqdata.h
@@ -1,5 +1,5 @@
#pragma once
-
+
#include <library/cpp/digest/lower_case/hash_ops.h>
#include <util/str_stl.h>
@@ -14,11 +14,11 @@
#include <util/generic/string.h>
#include <util/datetime/base.h>
#include <util/generic/buffer.h>
-
+
using THttpHeadersContainer = THashMap<TString, TString, TCIOps, TCIOps>;
class TBaseServerRequestData {
-public:
+public:
TBaseServerRequestData(SOCKET s = INVALID_SOCKET);
TBaseServerRequestData(const char* qs, SOCKET s = INVALID_SOCKET);
@@ -29,7 +29,7 @@ public:
const TString& ServerName() const {
return Host;
- }
+ }
NAddr::IRemoteAddrPtr ServerAddress() const {
return NAddr::GetSockAddr(Socket);
@@ -37,15 +37,15 @@ public:
const TString& ServerPort() const {
return Port;
- }
+ }
- const char* ScriptName() const {
- return Path;
- }
+ const char* ScriptName() const {
+ return Path;
+ }
- const char* QueryString() const {
- return Search;
- }
+ const char* QueryString() const {
+ return Search;
+ }
TStringBuf QueryStringBuf() const {
return TStringBuf(Search, SearchLength);
@@ -82,22 +82,22 @@ public:
}
void SetPath(const TString& path);
- const char* GetCurPage() const;
+ const char* GetCurPage() const;
bool Parse(const char* req);
void AddHeader(const TString& name, const TString& value);
-private:
+private:
TBuffer PathStorage;
mutable char* Addr;
TString Host;
TString Port;
- char* Path;
- char* Search;
+ char* Path;
+ char* Search;
size_t SearchLength; // length of Search
TStringBuf OrigSearch;
THttpHeadersContainer HeadersIn_;
mutable char AddrData[INET6_ADDRSTRLEN];
- SOCKET Socket;
+ SOCKET Socket;
ui64 BeginTime;
mutable TString CurPage;
TBuffer ParseBuf;
@@ -105,7 +105,7 @@ private:
};
class TServerRequestData: public TBaseServerRequestData {
-public:
+public:
TServerRequestData(SOCKET s = INVALID_SOCKET)
: TBaseServerRequestData(s)
{
@@ -122,4 +122,4 @@ public:
public:
TCgiParameters CgiParam;
-};
+};