pub unsafe trait NSURLConnectionDataDelegate: NSURLConnectionDelegate {
// Provided methods
unsafe fn connection_willSendRequest_redirectResponse(
&self,
connection: &NSURLConnection,
request: &NSURLRequest,
response: Option<&NSURLResponse>
) -> Option<Retained<NSURLRequest>>
where Self: Sized + Message { ... }
unsafe fn connection_didReceiveResponse(
&self,
connection: &NSURLConnection,
response: &NSURLResponse
)
where Self: Sized + Message { ... }
unsafe fn connection_didReceiveData(
&self,
connection: &NSURLConnection,
data: &NSData
)
where Self: Sized + Message { ... }
unsafe fn connection_needNewBodyStream(
&self,
connection: &NSURLConnection,
request: &NSURLRequest
) -> Option<Retained<NSInputStream>>
where Self: Sized + Message { ... }
unsafe fn connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite(
&self,
connection: &NSURLConnection,
bytes_written: NSInteger,
total_bytes_written: NSInteger,
total_bytes_expected_to_write: NSInteger
)
where Self: Sized + Message { ... }
unsafe fn connection_willCacheResponse(
&self,
connection: &NSURLConnection,
cached_response: &NSCachedURLResponse
) -> Option<Retained<NSCachedURLResponse>>
where Self: Sized + Message { ... }
unsafe fn connectionDidFinishLoading(&self, connection: &NSURLConnection)
where Self: Sized + Message { ... }
}
Available on crate feature
NSURLConnection
only.Provided Methods§
unsafe fn connection_willSendRequest_redirectResponse( &self, connection: &NSURLConnection, request: &NSURLRequest, response: Option<&NSURLResponse> ) -> Option<Retained<NSURLRequest>>
Available on crate features
NSURLRequest
and NSURLResponse
only.unsafe fn connection_didReceiveResponse( &self, connection: &NSURLConnection, response: &NSURLResponse )
Available on crate feature
NSURLResponse
only.unsafe fn connection_didReceiveData( &self, connection: &NSURLConnection, data: &NSData )
Available on crate feature
NSData
only.unsafe fn connection_needNewBodyStream( &self, connection: &NSURLConnection, request: &NSURLRequest ) -> Option<Retained<NSInputStream>>
Available on crate features
NSStream
and NSURLRequest
only.unsafe fn connection_didSendBodyData_totalBytesWritten_totalBytesExpectedToWrite( &self, connection: &NSURLConnection, bytes_written: NSInteger, total_bytes_written: NSInteger, total_bytes_expected_to_write: NSInteger )
unsafe fn connection_willCacheResponse( &self, connection: &NSURLConnection, cached_response: &NSCachedURLResponse ) -> Option<Retained<NSCachedURLResponse>>
Available on crate feature
NSURLCache
only.