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) -> StubResponseParameters
urlRequestThe incoming original URLRequest
Return Value
A StubResponse instance representing the stub response.
View on GitHub
LocalServerDelegate Protocol Reference