|
iceberg-cpp
|
A simple wrapper for cpr::Response. More...
#include <http_client.h>
Classes | |
| class | Impl |
Public Member Functions | |
| HttpResponse (const HttpResponse &)=delete | |
| HttpResponse & | operator= (const HttpResponse &)=delete |
| HttpResponse (HttpResponse &&) noexcept | |
| HttpResponse & | operator= (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 |
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.