FindReplaceFloret

public class FindReplaceFloret : InterceptingFloret

A FindReplaceFloret uses RecordModifiers to modify a Record before sending a request and after receiving a response. Use multiple instances of the FindReplaceFlorets to group certain RecordModifiers under a given name.

  • Declaration

    Swift

    public var enabled: Bool
  • Declaration

    Swift

    public let name: String
  • Declaration

    Swift

    public var description: String?
  • This init will create a FindReplaceFloret with RecordModifiers to modify Records.

    Declaration

    Swift

    public init(willRequestModifiers: [RecordModifier] = [], didRespondModifiers: [RecordModifier] = [], name: String = "FindReplaceFloret", description: String? = nil)

    Parameters

    willRequestModifiers

    The RecordModifiers used to modify a Record before sending a request.

    didRespondModifiers

    The RecordModifiers used to modify a Record after receiving a response.

    name

    Can be used to describe the set of choosen RecordModifiers. The default name is FindReplaceFloret.

    description

    Provide additional description what this floret does that is exposed in the UI

  • Declaration

    Swift

    public func willRequest(_ record: Record, modificationCompletionHandler completionHandler: @escaping (Record) -> Void)
  • Declaration

    Swift

    public func didRespond(_ record: Record, modificationCompletionHandler completionHandler: @escaping (Record) -> Void)