blackberry.com
BlackBerry Dynamics
Runtime library for iOS applications
from the application developer portal

GDURLRequestDataDelegate.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2017 BlackBerry Limited. All Right Reserved.
00003  * 
00004  */
00005 
00006 #ifndef __GD_URL_REQUEST_DATA_DELEGATE_H__
00007 #define __GD_URL_REQUEST_DATA_DELEGATE_H__
00008 
00009 #import <Foundation/Foundation.h>
00010 #import "GDPortability.h"
00011 
00012 GD_NS_ASSUME_NONNULL_BEGIN
00013 
00072 @protocol GDURLRequestDataDelegate <NSObject>
00073 
00074 @optional
00075 
00098 - (BOOL)GDWillSendRequest:(NSURLRequest * GD_NSNULLABLE_POINTER * GD_NSNULLABLE_POINTER)request;
00099 
00125 - (void)GDRequest:(NSURLRequest*)request didReceiveResponse:(NSURLResponse*)response;
00126 
00150 - (void)GDRequest:(NSURLRequest*)request didReceiveData:(NSData*)data;
00151 
00177 - (void)GDRequest:(NSURLRequest*)request didFailWithError:(NSError*)error;
00178 
00222 - (BOOL)GDRequest:(NSMutableURLRequest*)request shouldContinueAfterFailWithError:(NSError*)error;
00223 
00235 - (void)GDRequestDidFinishLoading:(NSURLRequest*)request;
00236 
00237 @end
00238 
00239 GD_NS_ASSUME_NONNULL_END
00240 
00241 #endif