diff options
| author | manavrion <[email protected]> | 2022-02-10 16:49:16 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:16 +0300 | 
| commit | 29d0b2eeae154d04156e0698067c0c21a97ea61d (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/url/url.h | |
| parent | 109de9f4c31b6caaa736ce29a61fce05851e7c02 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url.h')
| -rw-r--r-- | library/cpp/string_utils/url/url.h | 44 | 
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/string_utils/url/url.h b/library/cpp/string_utils/url/url.h index ab8924cdc20..84137ccc57d 100644 --- a/library/cpp/string_utils/url/url.h +++ b/library/cpp/string_utils/url/url.h @@ -1,28 +1,28 @@  #pragma once  #include <util/generic/fwd.h> -#include <util/generic/strbuf.h>  - -namespace NUrl {  -  -    /**  -     * Splits URL to host and path  -     * Example:  -     * auto [host, path] = SplitUrlToHostAndPath(url);  -     *  -     * @param[in] url                   any URL  -     * @param[out] <host, path>     parsed host and path  -     */  -    struct TSplitUrlToHostAndPathResult {  -        TStringBuf host;  -        TStringBuf path;  -    };  -  -    Y_PURE_FUNCTION  -    TSplitUrlToHostAndPathResult SplitUrlToHostAndPath(const TStringBuf url);  -  -} // namespace NUrl  -  +#include <util/generic/strbuf.h> + +namespace NUrl { + +    /** +     * Splits URL to host and path +     * Example: +     * auto [host, path] = SplitUrlToHostAndPath(url); +     * +     * @param[in] url                   any URL +     * @param[out] <host, path>     parsed host and path +     */ +    struct TSplitUrlToHostAndPathResult { +        TStringBuf host; +        TStringBuf path; +    }; + +    Y_PURE_FUNCTION +    TSplitUrlToHostAndPathResult SplitUrlToHostAndPath(const TStringBuf url); + +} // namespace NUrl +  Y_PURE_FUNCTION  size_t GetHttpPrefixSize(const char* url, bool ignorehttps = false) noexcept;  Y_PURE_FUNCTION  | 
