2022-12-24 23:49:50 +00:00
|
|
|
// Copyright (c) 2015-2022 The Bitcoin Core developers
|
2019-04-02 17:03:37 -04:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2022-10-14 13:55:53 +08:00
|
|
|
#ifndef BITCOIN_COMMON_URL_H
|
|
|
|
#define BITCOIN_COMMON_URL_H
|
2019-04-02 17:03:37 -04:00
|
|
|
|
|
|
|
#include <string>
|
2024-04-20 16:35:39 +02:00
|
|
|
#include <string_view>
|
2019-04-02 17:03:37 -04:00
|
|
|
|
2024-04-20 16:49:02 +02:00
|
|
|
/* Decode a URL.
|
|
|
|
*
|
|
|
|
* Notably this implementation does not decode a '+' to a ' '.
|
|
|
|
*/
|
2024-04-20 17:05:18 +02:00
|
|
|
std::string UrlDecode(std::string_view url_encoded);
|
2019-04-02 17:03:37 -04:00
|
|
|
|
2022-10-14 13:55:53 +08:00
|
|
|
#endif // BITCOIN_COMMON_URL_H
|