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.
Copy file name to clipboardExpand all lines: Sources/AWSLambdaRuntimeCore/Lambda+JSON.swift
+4-4
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ public struct LambdaHandlerAdapter<
58
58
/// Initializes an instance given a concrete handler.
59
59
/// - Parameter handler: The ``LambdaHandler`` conforming handler that is to be adapted to ``LambdaWithBackgroundProcessingHandler``.
60
60
@inlinable
61
-
packageinit(handler:Handler){
61
+
publicinit(handler:Handler){
62
62
self.handler = handler
63
63
}
64
64
@@ -98,7 +98,7 @@ public struct LambdaCodableAdapter<
98
98
/// - decoder: The decoder object that will be used to decode the received ``ByteBuffer`` event into the generic ``Event`` type served to the `handler`.
@@ -109,7 +109,7 @@ public struct LambdaCodableAdapter<
109
109
/// - decoder: The decoder object that will be used to decode the received ``ByteBuffer`` event into the generic ``Event`` type served to the `handler`.
@@ -148,7 +148,7 @@ where Output == Encoder.Output {
148
148
/// - encoder: The encoder object that will be used to encode the generic ``Output`` into a ``ByteBuffer``, which will then be passed to `streamWriter`.
149
149
/// - streamWriter: The underlying ``LambdaResponseStreamWriter`` that will be wrapped.
0 commit comments