C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
Loading...
Searching...
No Matches
essence::net::http_client Class Reference

An HTTP client for JSON input and output. More...

#include <http_client.hpp>

Inheritance diagram for essence::net::http_client:
essence::net::http_client_abstract< http_client >

Public Member Functions

 ES_API (CPPESSENCE) explicit http_client(const uri &base_uri)
 
 ES_API (CPPESSENCE) http_client(const uri &base_uri
 
 ES_API (CPPESSENCE) http_client(http_client &&) noexcept
 
 ES_API (CPPESSENCE) ~http_client()
 
 ES_API (CPPESSENCE) http_client &operator
 
 ES_API (CPPESSENCE) const uri &base_uri() const
 
ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi ES_API (CPPESSENCE) void on_progress(const http_progress_handler &handler) const
 
 ES_API (CPPESSENCE) void on_percentage(const http_percentage_handler &handler) const
 
- Public Member Functions inherited from essence::net::http_client_abstract< http_client >
const uribase_uri () const
 
abi::json commit_json_nop (http_method method, const uri &relative_uri, const http_header_handler &header_handler={}) const
 
abi::json commit_json (http_method method, const uri &relative_uri, const abi::json &params, const http_header_handler &header_handler={}) const
 
abi::json commit_bytes (http_method method, const uri &relative_uri, std::string_view content_type, std::span< const std::byte > bytes, const http_header_handler &header_handler={}) const
 
abi::json commit_bytes (http_method method, const uri &relative_uri, std::string_view content_type, Range &&bytes, const http_header_handler &header_handler={}) const
 
void on_progress (const http_progress_handler &progress_handler) const
 
auto commit_message (T &&message, const http_header_handler &header_handler={}) const
 

Public Attributes

const http_client_configconfig
 
- Public Attributes inherited from essence::net::http_client_abstract< http_client >
friend Impl
 

Detailed Description

An HTTP client for JSON input and output.


The documentation for this class was generated from the following file: