#include <fastmm/venues/blocking_http.hpp>
|
| | 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 |
| |
◆ BlockingHttp()
| fastmm::venues::BlockingHttp::BlockingHttp |
( |
std::string |
base_url, |
|
|
BlockingHttpOptions |
opts = {} |
|
) |
| |
|
explicit |
◆ 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 |