HTTPInterceptorDelegate
public protocol HTTPInterceptorDelegate : AnyObject
Important
This is a Public Preview API. It may be changed or removed at any time.-
Allows returning custom response for the given request.
request: The HTTP request for which custom response can be returned.
Declaration
Swift
func intercept(request: NKTHTTPRequest) -> NKTHTTPResponse?
Return Value
Custom response, or
nil
if the request should continue (to either other interceptor or the real server).