Mode

public enum Mode : Equatable

All possible modes the MockFloret can be in.

  • In record mode the MockFloret will record all (depending on the Cauli configuration) requests, serialize and store them in the documents folder.

    Declaration

    Swift

    case record
  • In mock mode the MockFloret will search for a MockFloret folder in the Bundle and tries to map all requests to a response stored in that folder. Forced defines the behaviour if no response is found. If forced is false, the request will be ignored by the MockFloret. If forced is true, the request will be answered with a 404-not-found response.

    Declaration

    Swift

    case mock(forced: Bool)