Initializersoto-core 7.4.0SotoCore
init(_:)
Middleware.swift:38init(_ middleware: @escaping (AWSHTTPRequest, AWSMiddlewareContext, _ next: AWSMiddlewareNextHandler) async throws -> AWSHTTPResponse)
init(_ middleware: @escaping (AWSHTTPRequest, AWSMiddlewareContext, _ next: AWSMiddlewareNextHandler) async throws -> AWSHTTPResponse)
s8SotoCore13AWSMiddlewareVyAcA15AWSHTTPResponseVAA14AWSHTTPRequestV_AA0C7ContextVAeG_AItYaKXEtYaYbKccfc
What are these?5K5J7
import SotoCore
struct AWSMiddleware
Middleware initialized with a middleware handle
struct AWSHTTPRequest
Object encapsulating all the information needed to generate a raw HTTP request to AWS
struct AWSMiddlewareContext
Context object sent to AWSMiddlewareProtocol
handle
functions
typealias AWSMiddlewareNextHandler = (AWSHTTPRequest, AWSMiddlewareContext) async throws -> AWSHTTPResponse
Function to call next middleware in the chain
struct AWSHTTPResponse
Structure encapsulating an HTTP Response
func handle(_ request: AWSHTTPRequest, context: AWSMiddlewareContext, next: AWSMiddlewareNextHandler) async throws -> AWSHTTPResponse