#include "ccf/ds/logger.h"
#include "ccf/ds/nonstd.h"
#include "ccf/rest_verb.h"
#include "http/curl.h"
#include "http/http_builder.h"
#include <charconv>
#include <curl/curl.h>
#include <llhttp/llhttp.h>
#include <optional>
#include <span>
#include <stdexcept>
#include <string>
#include <vector>
Go to the source code of this file.
◆ EXPECT_HTTP_RESPONSE_STATUS
#define EXPECT_HTTP_RESPONSE_STATUS |
( |
|
request, |
|
|
|
status_code, |
|
|
|
expected |
|
) |
| |
Value: do \
{ \
if (status_code != expected) \
{ \
throw std::runtime_error(fmt::format( \
"Expected {} response from {} {}, instead received {}", \
ccf::http_status_str(expected), \
request.get_method().c_str(), \
request.get_url(), \
status_code)); \
} \
} while (0)