aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/http_url.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/uri/http_url.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/uri/http_url.h')
-rw-r--r--library/cpp/uri/http_url.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/uri/http_url.h b/library/cpp/uri/http_url.h
index 92a332a1f6..7c8e8d844d 100644
--- a/library/cpp/uri/http_url.h
+++ b/library/cpp/uri/http_url.h
@@ -2,11 +2,11 @@
#include "uri.h"
#include "other.h"
-
+
// XXX: use NUri::TUri directly; this whole file is for backwards compatibility
class THttpURL
- : public NUri::TUri {
+ : public NUri::TUri {
public:
typedef TField::EFlags TFlags;
typedef TField::EField TField;
@@ -16,42 +16,42 @@ public:
public:
enum {
FeatureUnescapeStandard = TFeature::FeatureDecodeStandard,
- FeatureEscSpace = TFeature::FeatureEncodeSpaceAsPlus,
- FeatureEscapeUnescaped = TFeature::FeatureEncodeExtendedASCII,
- FeatureNormalPath = TFeature::FeaturePathStripRootParent,
+ FeatureEscSpace = TFeature::FeatureEncodeSpaceAsPlus,
+ FeatureEscapeUnescaped = TFeature::FeatureEncodeExtendedASCII,
+ FeatureNormalPath = TFeature::FeaturePathStripRootParent,
};
public:
THttpURL(unsigned defaultPort = 80)
: TUri(defaultPort)
- {
- }
+ {
+ }
- THttpURL(const TStringBuf& host, ui16 port, const TStringBuf& path, const TStringBuf& query = TStringBuf(), const TStringBuf& scheme = "http", unsigned defaultPort = 0)
+ THttpURL(const TStringBuf& host, ui16 port, const TStringBuf& path, const TStringBuf& query = TStringBuf(), const TStringBuf& scheme = "http", unsigned defaultPort = 0)
: TUri(host, port, path, query, scheme, defaultPort)
- {
- }
+ {
+ }
THttpURL(const TUri& url)
: TUri(url)
- {
- }
+ {
+ }
public: // XXX: don't use any of these legacy methods below
public: // use TUri::GetField() instead
/// will return null-terminated if fld is not dirty
- const char* Get(EField fld) const {
+ const char* Get(EField fld) const {
return GetField(fld).data();
}
public: // use TUriUpdate class so that Rewrite() is only called once
- void Set(EField field, const TStringBuf& value) {
+ void Set(EField field, const TStringBuf& value) {
if (SetInMemory(field, value))
Rewrite();
}
template <size_t size>
- void Set(EField field, const char (&value)[size]) {
+ void Set(EField field, const char (&value)[size]) {
if (SetInMemory(field, value))
Rewrite();
}
@@ -59,19 +59,19 @@ public: // use TUriUpdate class so that Rewrite() is only called once
public: // use TUri::FldXXX methods for better control
// Partial quick set of the field, can be called for
// multiple fields
- bool SetInMemory(EField field, const TStringBuf& value) {
+ bool SetInMemory(EField field, const TStringBuf& value) {
return FldMemSet(field, value);
}
// clears a field
- void Reset(EField field) {
+ void Reset(EField field) {
FldClr(field);
}
};
-static inline const char* HttpURLParsedStateToString(const NUri::TState::EParsed& t) {
+static inline const char* HttpURLParsedStateToString(const NUri::TState::EParsed& t) {
return NUri::ParsedStateToString(t);
}
-static inline const char* HttpUrlSchemeKindToString(const NUri::TScheme::EKind& t) {
+static inline const char* HttpUrlSchemeKindToString(const NUri::TScheme::EKind& t) {
return NUri::SchemeKindToString(t);
}