Commit 9edb1f8
authored
Add an init() that match the APIGatewayResponse (#91)
Add an `init()` to `FunctionURLResponse` to match the signature of
`APIGatewayv2Response`
### Motivation:
`APIGAtewayV2Response` and `FunctionURLResponse` share teh same
structure, although we provided two different signatures for the
initializers. This prevent writing common code to handle both responses.
### Modifications:
- add a new `init(0` that has the same signature as the init from
APIGatewayV2response
- make the current init as deprecated, we will remove it in a future
version bump
### Result:
Two init() functions on FunctionURLResponse1 parent 856ab49 commit 9edb1f8
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
108 | 123 | | |
0 commit comments