File tree Expand file tree Collapse file tree
include/aws/lambda-runtime Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ class invocation_response {
9292 invocation_response () = default ;
9393
9494public:
95+ // Create a success or failure response. Typically, you should use the static functions invocation_response::success
96+ // and invocation_response::failure, however, invocation_response::failure doesn't allow for arbitrary payloads.
97+ // To support clients that need to control the entire error response body (e.g. adding a stack trace), this
98+ // constructor should be used instead.
99+ // Note: adding an overload to invocation_response::failure is not feasible since the parameter types are the same.
95100 invocation_response (std::string const & payload, std::string const & content_type, bool success)
96101 : m_payload(payload), m_content_type(content_type), m_success(success)
97102 {
You can’t perform that action at this time.
0 commit comments