LocalServerDelegate

public protocol LocalServerDelegate

Defines the necessary methods to become a LocalServer responder.

  • This function is called by the LocalServer everytime a new Request is fired by the URLSession mechanism.

    Declaration

    Swift

    func responseForURLRequest(_ urlRequest: URLRequest) -> StubResponse

    Parameters

    urlRequest

    The incoming original URLRequest

    Return Value

    A StubResponse instance representing the stub response.