diff options
author | leo <leo@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:40 +0300 |
commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /library/cpp/http/misc | |
parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
download | ydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz |
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/misc')
-rw-r--r-- | library/cpp/http/misc/httpdate.cpp | 12 | ||||
-rw-r--r-- | library/cpp/http/misc/httpdate.h | 2 | ||||
-rw-r--r-- | library/cpp/http/misc/httpreqdata.h | 36 |
3 files changed, 25 insertions, 25 deletions
diff --git a/library/cpp/http/misc/httpdate.cpp b/library/cpp/http/misc/httpdate.cpp index 4a3031bbf4..719f100451 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 04876f38fe..e9583b4230 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 16e59c4d78..ae2652ac42 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; -}; +}; |