File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ public struct LambdaCodableAdapter<
116
116
}
117
117
118
118
/// A ``StreamingLambdaHandler/handle(_:responseWriter:context:)`` wrapper.
119
- /// - Parameters:
120
- /// - event : The received event.
121
- /// - outputWriter : The writer to write the computed response to.
119
+ /// - Parameters:
120
+ /// - request : The received event.
121
+ /// - responseWriter : The writer to write the computed response to.
122
122
/// - context: The ``LambdaContext`` containing the invocation's metadata.
123
123
@inlinable
124
124
public mutating func handle< Writer: LambdaResponseStreamWriter > (
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public protocol LambdaResponseStreamWriter {
67
67
public protocol LambdaHandler {
68
68
/// Generic input type.
69
69
/// The body of the request sent to Lambda will be decoded into this type for the handler to consume.
70
- associatedtype Event : Decodable
70
+ associatedtype Event
71
71
/// Generic output type.
72
72
/// This is the return type of the ``LambdaHandler/handle(_:context:)`` function.
73
73
associatedtype Output
@@ -89,7 +89,7 @@ public protocol LambdaHandler {
89
89
public protocol LambdaWithBackgroundProcessingHandler {
90
90
/// Generic input type.
91
91
/// The body of the request sent to Lambda will be decoded into this type for the handler to consume.
92
- associatedtype Event : Decodable
92
+ associatedtype Event
93
93
/// Generic output type.
94
94
/// This is the type that the `handle` function will send through the ``LambdaResponseWriter``.
95
95
associatedtype Output
@@ -183,9 +183,10 @@ extension LambdaRuntime {
183
183
}
184
184
185
185
/// Initialize an instance with a ``LambdaHandler`` defined in the form of a closure **with a non-`Void` return type**, an encoder, and a decoder.
186
- /// - Parameter body: The handler in the form of a closure.
187
- /// - Parameter encoder: The encoder object that will be used to encode the generic `Output` into a `ByteBuffer`.
188
- /// - Parameter decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type.
186
+ /// - Parameters:
187
+ /// - encoder: The encoder object that will be used to encode the generic `Output` into a `ByteBuffer`.
188
+ /// - decoder: The decoder object that will be used to decode the incoming `ByteBuffer` event into the generic `Event` type.
189
+ /// - body: The handler in the form of a closure.
189
190
public convenience init <
190
191
Event: Decodable ,
191
192
Output: Encodable ,
You can’t perform that action at this time.
0 commit comments