iceberg-cpp
Loading...
Searching...
No Matches
Classes | Public Member Functions | Friends | List of all members
iceberg::rest::HttpResponse Class Reference

A simple wrapper for cpr::Response. More...

#include <http_client.h>

Classes

class  Impl
 

Public Member Functions

 HttpResponse (const HttpResponse &)=delete
 
HttpResponseoperator= (const HttpResponse &)=delete
 
 HttpResponse (HttpResponse &&) noexcept
 
HttpResponseoperator= (HttpResponse &&) noexcept
 
int32_t status_code () const
 Get the HTTP status code of the response.
 
std::string body () const
 Get the body of the response as a string.
 
std::unordered_map< std::string, std::string > headers () const
 Get the headers of the response as a map.
 

Friends

class HttpClient
 

Detailed Description

A simple wrapper for cpr::Response.

This class encapsulates the details of the underlying cpr library's response, providing a consistent interface that is independent of the specific network library used.


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