-
Notifications
You must be signed in to change notification settings - Fork 496
Make StatusCode and Body available in IHttpResult/HttpResult #1468
Copy link
Copy link
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.module/lambda-client-libp2This is a standard priority issueThis is a standard priority issuequeued
Description
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
- I may be able to implement this feature request
- This feature might incur a breaking change
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.module/lambda-client-libp2This is a standard priority issueThis is a standard priority issuequeued