Botan 3.13.0
Crypto and TLS for C&
http_util.h File Reference

Internal Header. More...

#include <botan/exceptn.h>
#include <botan/types.h>
#include <algorithm>
#include <chrono>
#include <functional>
#include <map>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  Botan::HTTP::Case_Insensitive_Less
class  Botan::HTTP::HTTP_Error
class  Botan::HTTP::RequestLimits
class  Botan::HTTP::Response

Namespaces

namespace  Botan
namespace  Botan::HTTP
namespace  Botan::OS

Typedefs

using Botan::HTTP::Headers = std::map<std::string, std::string, Case_Insensitive_Less>
typedef std::function< Response(std::string_view, std::string_view, std::string_view, std::optional< size_t >)> Botan::HTTP::http_exch_fn

Functions

Response Botan::HTTP::GET_sync (const URI &uri, const RequestLimits &limits)
Response Botan::HTTP::http_sync (const http_exch_fn &http_transact, std::string_view verb, const URI &uri, std::string_view content_type, const std::vector< uint8_t > &body, const RequestLimits &limits)
Response Botan::HTTP::http_sync (std::string_view verb, const URI &uri, std::string_view content_type, const std::vector< uint8_t > &body, const RequestLimits &limits)
std::ostream & Botan::HTTP::operator<< (std::ostream &o, const Response &resp)
Response Botan::HTTP::POST_sync (const URI &uri, std::string_view content_type, const std::vector< uint8_t > &body, const RequestLimits &limits)
Response Botan::HTTP::read_response_from_socket (OS::Socket &socket, std::chrono::milliseconds timeout, std::optional< size_t > max_body_size)
std::string Botan::HTTP::url_encode (std::string_view in)

Detailed Description

Internal Header.

Definition in file http_util.h.