Config

public class Config

A Config instance represents the config used by MeiliSearch instance.

Initializers

  • Obtains a Config instance for the given host and optional apiKey with an optional custom session 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.