Config
public class Config
A Config
instance represents the config used by MeiliSearch instance.
-
Obtains a Config instance for the given
host
and optionalapiKey
with an optional customsession
URLSessionProtocol.Declaration
Swift
public init( host: String, apiKey: String? = nil, session: URLSessionProtocol? = URLSession.shared)
Parameters
host
Address for the MeiliSearch server.
apiKey
API key needed for the production environment.
session
A custom produced URLSessionProtocol.