pub unsafe trait NSURLProtocolClient: NSObjectProtocol {
// Provided methods
unsafe fn URLProtocol_wasRedirectedToRequest_redirectResponse(
&self,
protocol: &NSURLProtocol,
request: &NSURLRequest,
redirect_response: &NSURLResponse
)
where Self: Sized + Message { ... }
unsafe fn URLProtocol_cachedResponseIsValid(
&self,
protocol: &NSURLProtocol,
cached_response: &NSCachedURLResponse
)
where Self: Sized + Message { ... }
unsafe fn URLProtocol_didReceiveResponse_cacheStoragePolicy(
&self,
protocol: &NSURLProtocol,
response: &NSURLResponse,
policy: NSURLCacheStoragePolicy
)
where Self: Sized + Message { ... }
unsafe fn URLProtocol_didLoadData(
&self,
protocol: &NSURLProtocol,
data: &NSData
)
where Self: Sized + Message { ... }
unsafe fn URLProtocolDidFinishLoading(&self, protocol: &NSURLProtocol)
where Self: Sized + Message { ... }
unsafe fn URLProtocol_didFailWithError(
&self,
protocol: &NSURLProtocol,
error: &NSError
)
where Self: Sized + Message { ... }
unsafe fn URLProtocol_didReceiveAuthenticationChallenge(
&self,
protocol: &NSURLProtocol,
challenge: &NSURLAuthenticationChallenge
)
where Self: Sized + Message { ... }
unsafe fn URLProtocol_didCancelAuthenticationChallenge(
&self,
protocol: &NSURLProtocol,
challenge: &NSURLAuthenticationChallenge
)
where Self: Sized + Message { ... }
}
Available on crate feature
NSURLProtocol
only.Provided Methods§
unsafe fn URLProtocol_wasRedirectedToRequest_redirectResponse( &self, protocol: &NSURLProtocol, request: &NSURLRequest, redirect_response: &NSURLResponse )
Available on crate features
NSURLRequest
and NSURLResponse
only.unsafe fn URLProtocol_cachedResponseIsValid( &self, protocol: &NSURLProtocol, cached_response: &NSCachedURLResponse )
Available on crate feature
NSURLCache
only.unsafe fn URLProtocol_didReceiveResponse_cacheStoragePolicy( &self, protocol: &NSURLProtocol, response: &NSURLResponse, policy: NSURLCacheStoragePolicy )
Available on crate features
NSURLCache
and NSURLResponse
only.unsafe fn URLProtocol_didLoadData( &self, protocol: &NSURLProtocol, data: &NSData )
Available on crate feature
NSData
only.unsafe fn URLProtocolDidFinishLoading(&self, protocol: &NSURLProtocol)
unsafe fn URLProtocol_didFailWithError( &self, protocol: &NSURLProtocol, error: &NSError )
Available on crate feature
NSError
only.unsafe fn URLProtocol_didReceiveAuthenticationChallenge( &self, protocol: &NSURLProtocol, challenge: &NSURLAuthenticationChallenge )
Available on crate feature
NSURLAuthenticationChallenge
only.unsafe fn URLProtocol_didCancelAuthenticationChallenge( &self, protocol: &NSURLProtocol, challenge: &NSURLAuthenticationChallenge )
Available on crate feature
NSURLAuthenticationChallenge
only.