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
Copy file name to clipboardExpand all lines: Sources/AWSLambdaRuntime/Lambda+LocalServer.swift
-4Lines changed: 0 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,7 @@ import Synchronization
37
37
// )
38
38
// }
39
39
// }
40
-
#if swift(>=6.1)
41
40
@available(LambdaSwift 2.0,*)
42
-
#endif
43
41
extensionLambda{
44
42
/// Execute code in the context of a mock Lambda server.
45
43
///
@@ -87,9 +85,7 @@ extension Lambda {
87
85
/// 1. POST /invoke - the client posts the event to the lambda function
88
86
///
89
87
/// This server passes the data received from /invoke POST request to the lambda function (GET /next) and then forwards the response back to the client.
/// The handler function -- implement the business logic of the Lambda function here.
29
27
/// - Parameters:
@@ -69,9 +67,7 @@ public protocol LambdaResponseStreamWriter {
69
67
///
70
68
/// - 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.
71
69
/// 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.
72
-
#if swift(>=6.1)
73
70
@available(LambdaSwift 2.0,*)
74
-
#endif
75
71
publicprotocolLambdaHandler{
76
72
/// Generic input type.
77
73
/// The body of the request sent to Lambda will be decoded into this type for the handler to consume.
@@ -94,9 +90,7 @@ public protocol LambdaHandler {
94
90
/// ``LambdaResponseWriter``that is passed in as an argument, meaning that the
95
91
/// ``LambdaWithBackgroundProcessingHandler/handle(_:outputWriter:context:)`` function is then
96
92
/// free to implement any background work after the result has been sent to the AWS Lambda control plane.
0 commit comments