Make StatusCode and Body available in IHttpResult/HttpResult #1468
Labels
feature-request
A feature should be added or improved.
module/lambda-client-lib
p2
This is a standard priority issue
queued
Describe the feature
Make StatusCode and Body available in IHttpResult/HttpResult,
this would make unit testing lambdas returning IHttpResults a lot simpler.
Use Case
A lot of Api's return either 200 OK or 400 BadRequest.
There is no easy way to unit test if the result of a Annotation Lambda is returning the correct httpStatus and or body
Proposed Solution
Make Status code and body available on IHttpResult and/or HttpResult.
The fields are already mandatory in HttpResult, no Reason for them to not be public (or at least public get)
Other Information
No response
Acknowledgements
AWS .NET SDK and/or Package version used
Amazon.Lambda.Annotations 0.13.0.0
Targeted .NET Platform
.NET6
Operating System and version
ALL SUPPORTED
The text was updated successfully, but these errors were encountered: