MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / is_success

Function is_success

src/runtime.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49};
50
51static bool is_success(aws::http::response_code httpcode)
52{
53 constexpr auto http_first_success_error_code = 200;
54 constexpr auto http_last_success_error_code = 299;
55 auto const code = static_cast<int>(httpcode);
56 return code >= http_first_success_error_code && code <= http_last_success_error_code;
57}
58
59static size_t write_data(char* ptr, size_t size, size_t nmemb, void* userdata)
60{

Callers 2

get_nextMethod · 0.85
do_postMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected