FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::venues::BlockingHttp Class Reference

#include <fastmm/venues/blocking_http.hpp>

Public Member Functions

 BlockingHttp (std::string base_url, BlockingHttpOptions opts={})
 
HttpReply request (std::string_view method, std::string_view target, std::string_view extra_headers={}, std::string_view body={})
 target is the path plus query ("/api/v3/depth?symbol=BTCUSDT"); extra_headers is a pre-formatted "Name: value\\r\\n" block.
 
HttpReply get (std::string_view target, std::string_view extra_headers={})
 
const std::string & base_url () const noexcept
 
std::string_view host () const noexcept
 

Constructor & Destructor Documentation

◆ BlockingHttp()

fastmm::venues::BlockingHttp::BlockingHttp ( std::string  base_url,
BlockingHttpOptions  opts = {} 
)
explicit

Member Function Documentation

◆ request()

HttpReply fastmm::venues::BlockingHttp::request ( std::string_view  method,
std::string_view  target,
std::string_view  extra_headers = {},
std::string_view  body = {} 
)

target is the path plus query ("/api/v3/depth?symbol=BTCUSDT"); extra_headers is a pre-formatted "Name: value\\r\\n" block.

◆ get()

HttpReply fastmm::venues::BlockingHttp::get ( std::string_view  target,
std::string_view  extra_headers = {} 
)
inline

◆ base_url()

const std::string & fastmm::venues::BlockingHttp::base_url ( ) const
inlinenoexcept

◆ host()

std::string_view fastmm::venues::BlockingHttp::host ( ) const
inlinenoexcept