|
kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
|
Request boundary used by KalshiClient. More...
#include <kalshi/http_client.hpp>
Public Member Functions | |
| virtual | ~HttpTransport ()=default |
| virtual Result< HttpResponse > | request (HttpMethod method, std::string_view path, std::string_view body={}) const =0 |
path is relative to the base URL and may carry a query string. | |
| Result< HttpResponse > | get (std::string_view path) const |
| Result< HttpResponse > | post (std::string_view path, std::string_view body={}) const |
| Result< HttpResponse > | put (std::string_view path, std::string_view body={}) const |
| Result< HttpResponse > | del (std::string_view path, std::string_view body={}) const |
Request boundary used by KalshiClient.
Implement it to add logging, retries, or rate limiting, or to test without a network.
|
virtualdefault |
|
pure virtual |
path is relative to the base URL and may carry a query string.
Implemented in kalshi::HttpClient, kalshi::RateLimitedTransport, and kalshi::RetryingTransport.
|
inline |
|
inline |
|
inline |
|
inline |