kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
kalshi::HttpResponse Struct Reference

#include <kalshi/http_client.hpp>

Public Member Functions

std::optional< std::string_view > header (std::string_view name) const noexcept
 Case-insensitive header lookup. Returns the first match.
 

Public Attributes

int status_code {0}
 
std::string body
 
std::vector< std::pair< std::string, std::string > > headers
 

Member Function Documentation

◆ header()

std::optional< std::string_view > kalshi::HttpResponse::header ( std::string_view  name) const
noexcept

Case-insensitive header lookup. Returns the first match.

Member Data Documentation

◆ status_code

int kalshi::HttpResponse::status_code {0}

◆ body

std::string kalshi::HttpResponse::body

◆ headers

std::vector<std::pair<std::string, std::string> > kalshi::HttpResponse::headers

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