testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::Response Struct Reference

An HTTP response from the Docker Engine API. More...

#include <testcontainers/docker/DockerClient.hpp>

Public Member Functions

std::string header (std::string_view name) const
 Case-insensitive header lookup; returns "" if absent.
bool ok () const noexcept

Public Attributes

int status_code = 0
std::string reason
std::string body
std::vector< std::pair< std::string, std::string > > headers

Detailed Description

An HTTP response from the Docker Engine API.

Member Function Documentation

◆ header()

std::string testcontainers::Response::header ( std::string_view name) const

Case-insensitive header lookup; returns "" if absent.

◆ ok()

bool testcontainers::Response::ok ( ) const
inlinenoexcept

Member Data Documentation

◆ status_code

int testcontainers::Response::status_code = 0

◆ reason

std::string testcontainers::Response::reason

◆ body

std::string testcontainers::Response::body

◆ headers

std::vector<std::pair<std::string, std::string> > testcontainers::Response::headers