EBRequest Class Reference
Inherits from | NSObject |
Declared in | EBRequest.h EBRequest.m |
Tasks
-
sourceURL
Source URL
property -
completionBlock
Completion block called when the request is finished correctly. The completion block is always executed in the main thread.
property -
errorBlock
Error block called when the request fails. The error block is always executed in the main thread.
property -
runLoopMode
Optional property. When set, this run loop mode will be assigned to the internal NSURLConnection.
property -
isRunning
Specifies whether the current request is running.
property -
delegate
Delegate. See EBRequestDelegate
property -
+ requestWithURL:
Creates a new request with the specified URL. Not started until start is called.
-
– initWithURL:
Creates a new request with the specified URL. Not started until start is called.
-
– start
Starts an asynchronous request
-
– stop
Stops an asynchronous request.
Properties
completionBlock
Completion block called when the request is finished correctly. The completion block is always executed in the main thread.
@property (atomic, copy) EBCompletionBlock completionBlock
Discussion
Completion block called when the request is finished correctly. The completion block is always executed in the main thread.
Declared In
EBRequest.h
delegate
Delegate. See EBRequestDelegate
@property (nonatomic, assign) id<EBRequestDelegate> delegate
Discussion
Delegate. See EBRequestDelegate
Declared In
EBRequest.h
errorBlock
Error block called when the request fails. The error block is always executed in the main thread.
@property (atomic, copy) EBErrorBlock errorBlock
Discussion
Error block called when the request fails. The error block is always executed in the main thread.
Declared In
EBRequest.h
isRunning
Specifies whether the current request is running.
@property (nonatomic, readonly) BOOL isRunning
Discussion
Specifies whether the current request is running.
Declared In
EBRequest.h
Instance Methods
initWithURL:
Creates a new request with the specified URL. Not started until start is called.
- (id)initWithURL:(NSURL *)url
Parameters
- url
URL for the request.
Discussion
Creates a new request with the specified URL. Not started until start is called.
Declared In
EBRequest.h