summaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/location.h
diff options
context:
space:
mode:
authorDevtools Arcadia <[email protected]>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <[email protected]>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /library/cpp/uri/location.h
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'library/cpp/uri/location.h')
-rw-r--r--library/cpp/uri/location.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/library/cpp/uri/location.h b/library/cpp/uri/location.h
new file mode 100644
index 00000000000..0f533fe0b5c
--- /dev/null
+++ b/library/cpp/uri/location.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <util/generic/string.h>
+
+namespace NUri {
+ /**
+ * Resolve Location header according to https://tools.ietf.org/html/rfc7231#section-7.1.2
+ *
+ * @return Resolved location's url or empty string in case of any error.
+ */
+ TString ResolveRedirectLocation(const TStringBuf& baseUrl, const TStringBuf& location);
+
+}