AWSServiceMiddleware
public protocol AWSServiceMiddleware
Middleware protocol. Gives ability to process requests before they are sent to AWS and process responses before they are converted into output shapes
-
chain(request:
Default implementationcontext: ) Process AWSRequest before it is converted to a HTTPClient Request to be sent to AWS
Default Implementation
Declaration
Swift
func chain(request: AWSRequest, context: AWSMiddlewareContext) throws -> AWSRequest
-
chain(response:
Default implementationcontext: ) Process response before it is converted to an output AWSShape
Default Implementation
Declaration
Swift
func chain(response: AWSResponse, context: AWSMiddlewareContext) throws -> AWSResponse