mirror of
https://github.com/oatpp/oatpp.git
synced 2025-03-01 17:46:02 +08:00
603 B
603 B
Oat++ 1.3.0
Previous release - 1.3.0
Feel free to ask questions - Chat on Gitter!
Contents:
URL Encoder And Decoder
#include "oatpp/encoding/Url.hpp"
...
oatpp::String data = "Hello URL-Encoder!!!";
oatpp::encoding::Url::Config config;
auto encoded = oatpp::encoding::Url::encode(data, config);
auto decoded = oatpp::encoding::Url::decode(encoded);
OATPP_ASSERT(decoded == data);
Note: Oat++ does NOT automatically decode URL and its parameters on endpoint hit.