Skip to content

Make StatusCode and Body available in IHttpResult/HttpResult #1468

@kabaluk

Description

@kabaluk

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions