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

Method success

src/runtime.cpp:513–521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513AWS_LAMBDA_RUNTIME_API
514invocation_response invocation_response::success(std::string payload, std::string content_type)
515{
516 invocation_response r;
517 r.m_success = true;
518 r.m_content_type = std::move(content_type);
519 r.m_payload = std::move(payload);
520 return r;
521}
522
523AWS_LAMBDA_RUNTIME_API
524invocation_response invocation_response::failure(std::string const& error_message, std::string const& error_type)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected