You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// - encoder: The encoder object that will be used to encode the generic ``Output`` obtained from the `handler`'s `outputWriter` into a ``ByteBuffer``.
48
47
/// - decoder: The decoder object that will be used to decode the received ``ByteBuffer`` event into the generic ``Event`` type served to the `handler`.
49
48
/// - handler: The handler object.
50
-
packageinit(
49
+
publicinit(
51
50
encoder:JSONEncoder,
52
51
decoder:JSONDecoder,
53
52
handler:Handler
@@ -71,7 +70,7 @@ extension LambdaRuntime {
71
70
/// - Parameter body: The handler in the form of a closure.
72
71
/// - Parameter encoder: The encoder object that will be used to encode the generic ``Output`` into a ``ByteBuffer``. ``JSONEncoder()`` used as default.
73
72
/// - Parameter decoder: The decoder object that will be used to decode the incoming ``ByteBuffer`` event into the generic ``Event`` type. ``JSONDecoder()`` used as default.
/// Initialize an instance with a ``LambdaHandler`` defined in the form of a closure **with a `Void` return type**.
98
97
/// - Parameter body: The handler in the form of a closure.
99
98
/// - Parameter decoder: The decoder object that will be used to decode the incoming ``ByteBuffer`` event into the generic ``Event`` type. ``JSONDecoder()`` used as default.
/// - decoder: The decoder object that will be used to decode the received ``ByteBuffer`` event into the generic ``Event`` type served to the `handler`.
/// - decoder: The decoder object that will be used to decode the received ``ByteBuffer`` event into the generic ``Event`` type served to the `handler`.
@@ -147,13 +148,13 @@ where Output == Encoder.Output {
147
148
/// - encoder: The encoder object that will be used to encode the generic ``Output`` into a ``ByteBuffer``, which will then be passed to `streamWriter`.
148
149
/// - streamWriter: The underlying ``LambdaResponseStreamWriter`` that will be wrapped.
/// - note: This handler protocol does not support response streaming because the output has to be encoded prior to it being sent, e.g. it is not possible to encode a partial/incomplete JSON string.
66
66
/// This protocol also does not support the execution of background work after the response has been returned -- the ``LambdaWithBackgroundProcessingHandler`` protocol caters for such use-cases.
67
-
packageprotocolLambdaHandler{
67
+
publicprotocolLambdaHandler{
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.
/// Used with ``LambdaWithBackgroundProcessingHandler``.
110
110
/// A mechanism to "return" an output from ``LambdaWithBackgroundProcessingHandler/handle(_:outputWriter:context:)`` without the function needing to
111
111
/// have a return type and exit at that point. This allows for background work to be executed _after_ a response has been sent to the AWS Lambda response endpoint.
112
-
packageprotocolLambdaResponseWriter<Output>{
112
+
publicprotocolLambdaResponseWriter<Output>{
113
113
associatedtypeOutput
114
114
/// Sends the generic ``Output`` object (representing the computed result of the handler)
0 commit comments