MKNetworkEngine Class Reference
Inherits from | NSObject |
Declared in | MKNetworkEngine.h MKNetworkEngine.m |
Tasks
-
– initWithHostName:
-
– initWithHostName:customHeaderFields:
-
– initWithHostName:apiPath:customHeaderFields:
-
– initWithHostName:portNumber:apiPath:customHeaderFields:
-
– operationWithPath:
-
– operationWithPath:params:
-
– operationWithPath:params:httpMethod:
-
– operationWithPath:params:httpMethod:ssl:
-
– operationWithURLString:
-
– operationWithURLString:params:
-
– operationWithURLString:params:httpMethod:
-
– prepareHeaders:
-
– imageAtURL:size:onCompletion:
-
– imageAtURL:onCompletion:
-
– imageAtURL:completionHandler:errorHandler:
-
– imageAtURL:size:completionHandler:errorHandler:
-
– enqueueOperation:
-
– enqueueOperation:forceReload:
-
+ cancelOperationsContainingURLString:
-
+ cancelOperationsMatchingBlock:
-
– cancelAllOperations
-
readonlyHostName
property -
portNumber
property -
wifiOnlyMode
property -
apiPath
property -
reachabilityChangedHandler
property -
– registerOperationSubclass:
-
– cacheDirectoryName
-
– cacheMemoryCost
-
– useCache
-
– emptyCache
-
– isReachable
-
shouldSendAcceptLanguageHeader
property
Properties
apiPath
Sets an api path if it is different from root URL @property apiPath
@property (copy, nonatomic) NSString *apiPath
Declared In
MKNetworkEngine.h
portNumber
Port Number that should be used by URL creating factory methods @property portNumber
@property (assign, nonatomic) int portNumber
Declared In
MKNetworkEngine.h
reachabilityChangedHandler
Handler that you implement to monitor reachability changes @property reachabilityChangedHandler
@property (copy, nonatomic) void ( ^ ) ( NetworkStatus ns ) reachabilityChangedHandler
Declared In
MKNetworkEngine.h
readonlyHostName
HostName of the engine @property readonlyHostName
@property (readonly, copy, nonatomic) NSString *readonlyHostName
Declared In
MKNetworkEngine.h
Class Methods
Instance Methods
cacheDirectoryName
Cache Directory Name
- (NSString *)cacheDirectoryName
Declared In
MKNetworkEngine.h
cancelAllOperations
Cancels all operations created by this engine
- (void)cancelAllOperations
Declared In
MKNetworkEngine.h
enqueueOperation:
Enqueues your operation into the shared queue
- (void)enqueueOperation:(MKNetworkOperation *)request
Declared In
MKNetworkEngine.h
enqueueOperation:forceReload:
Enqueues your operation into the shared queue.
- (void)enqueueOperation:(MKNetworkOperation *)operation forceReload:(BOOL)forceReload
Declared In
MKNetworkEngine.h
imageAtURL:completionHandler:errorHandler:
Handy helper method for fetching images in the background
- (MKNetworkOperation *)imageAtURL:(NSURL *)url completionHandler:(MKNKImageBlock)imageFetchedBlock errorHandler:(MKNKResponseErrorBlock)errorBlock
Declared In
MKNetworkEngine.h
imageAtURL:onCompletion:
Handy helper method for fetching images
- (MKNetworkOperation *)imageAtURL:(NSURL *)url onCompletion:(MKNKImageBlock)imageFetchedBlock
Declared In
MKNetworkEngine.h
imageAtURL:size:completionHandler:errorHandler:
Handy helper method for fetching images asynchronously in the background
- (MKNetworkOperation *)imageAtURL:(NSURL *)url size:(CGSize)size completionHandler:(MKNKImageBlock)imageFetchedBlock errorHandler:(MKNKResponseErrorBlock)errorBlock
Declared In
MKNetworkEngine.h
imageAtURL:size:onCompletion:
Handy helper method for fetching images asynchronously in the background
- (MKNetworkOperation *)imageAtURL:(NSURL *)url size:(CGSize)size onCompletion:(MKNKImageBlock)imageFetchedBlock
Declared In
MKNetworkEngine.h
initWithHostName:
Initializes your network engine with a hostname
- (id)initWithHostName:(NSString *)hostName
Declared In
MKNetworkEngine.h
initWithHostName:apiPath:customHeaderFields:
Initializes your network engine with a hostname
- (id)initWithHostName:(NSString *)hostName apiPath:(NSString *)apiPath customHeaderFields:(NSDictionary *)headers
Declared In
MKNetworkEngine.h
initWithHostName:customHeaderFields:
Initializes your network engine with a hostname and custom header fields
- (id)initWithHostName:(NSString *)hostName customHeaderFields:(NSDictionary *)headers
Declared In
MKNetworkEngine.h
initWithHostName:portNumber:apiPath:customHeaderFields:
Initializes your network engine with a hostname, port, path, and headers.
- (id)initWithHostName:(NSString *)hostName portNumber:(int)portNumber apiPath:(NSString *)apiPath customHeaderFields:(NSDictionary *)headers
Declared In
MKNetworkEngine.h
operationWithPath:
Creates a simple GET Operation with a request URL
- (MKNetworkOperation *)operationWithPath:(NSString *)path
Declared In
MKNetworkEngine.h
operationWithPath:params:
Creates a simple GET Operation with a request URL and parameters
- (MKNetworkOperation *)operationWithPath:(NSString *)path params:(NSDictionary *)body
Declared In
MKNetworkEngine.h
operationWithPath:params:httpMethod:
Creates a simple GET Operation with a request URL, parameters and HTTP Method
- (MKNetworkOperation *)operationWithPath:(NSString *)path params:(NSDictionary *)body httpMethod:(NSString *)method
Declared In
MKNetworkEngine.h
operationWithPath:params:httpMethod:ssl:
Creates a simple GET Operation with a request URL, parameters, HTTP Method and the SSL switch
- (MKNetworkOperation *)operationWithPath:(NSString *)path params:(NSDictionary *)body httpMethod:(NSString *)method ssl:(BOOL)useSSL
Declared In
MKNetworkEngine.h
operationWithURLString:
Creates a simple GET Operation with a request URL
- (MKNetworkOperation *)operationWithURLString:(NSString *)urlString
Declared In
MKNetworkEngine.h
operationWithURLString:params:
Creates a simple GET Operation with a request URL and parameters
- (MKNetworkOperation *)operationWithURLString:(NSString *)urlString params:(NSDictionary *)body
Declared In
MKNetworkEngine.h
operationWithURLString:params:httpMethod:
Creates a simple Operation with a request URL, parameters and HTTP Method
- (MKNetworkOperation *)operationWithURLString:(NSString *)urlString params:(NSDictionary *)body httpMethod:(NSString *)method
Declared In
MKNetworkEngine.h
prepareHeaders:
adds the custom default headers
- (void)prepareHeaders:(MKNetworkOperation *)operation
Declared In
MKNetworkEngine.h