Properties of HTTPResponse types should be var not let
Motivation:
When creating responses in Lambda developers might want to create the response in multiple steps changing and adding properties. As of now this is not possible since all HTTPResponse types only have let properties. If a developer wants to mark a response as immutable they have still the option to mark the complete response as let.
Modifications:
All properties of HTTPResponse types (APIGateway.Response, APIGateway.V2.Response, ALB.TargetGroupResponse) are now variable
Properties of HTTPResponse types should be
var
notlet
Motivation:
When creating responses in Lambda developers might want to create the response in multiple steps changing and adding properties. As of now this is not possible since all HTTPResponse types only have
let
properties. If a developer wants to mark a response as immutable they have still the option to mark the complete response aslet
.Modifications:
APIGateway.Response
,APIGateway.V2.Response
,ALB.TargetGroupResponse
) are nowvar
iableAPIGateway.V2.Response
. See example/documentation at the very endResult:
Developers have an easier job creating responses. 🥳