Config
public class Config
A Config instance represents the config used by MeiliSearch instance.
-
Obtains a Config instance for the given
hostand optionalapiKeywith an optional customsessionURLSessionProtocol.Declaration
Swift
public init( host: String, apiKey: String? = nil, session: URLSessionProtocol? = URLSession.shared)Parameters
hostAddress for the MeiliSearch server.
apiKeyAPI key needed for the production environment.
sessionA custom produced URLSessionProtocol.
Config Class Reference