HTTPClientProvider
public enum HTTPClientProvider
Specifies how HTTPClient
will be created and establishes lifecycle ownership.
-
HTTP Client will be provided by the user. Owner of this group is responsible for its lifecycle. Any HTTPClient that conforms to
AWSHTTPClient
can be specified here including AsyncHTTPClientDeclaration
Swift
case shared(AWSHTTPClient)
-
HTTP Client will be created by the client using provided EventLoopGroup. When
shutdown
is called, createdHTTPClient
will be shut down as well.Declaration
Swift
case createNewWithEventLoopGroup(EventLoopGroup)
-
HTTP Client will be created by the client. When
shutdown
is called, createdHTTPClient
will be shut down as well.Declaration
Swift
case createNew