FWNetworkAgent
@interface FWNetworkAgent : NSObject
FWNetworkAgent is the underlying class that handles actual request generation, serialization and response handling.
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Unavailable
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;
-
Get the shared agent.
Declaration
Objective-C
+ (nonnull FWNetworkAgent *)sharedAgent;
-
Add request to session and start it.
Declaration
Objective-C
- (void)addRequest:(nonnull FWBaseRequest *)request;
-
Cancel a request that was previously added.
Declaration
Objective-C
- (void)cancelRequest:(nonnull FWBaseRequest *)request;
-
Cancel all requests that were previously added.
Declaration
Objective-C
- (void)cancelAllRequests;
-
Return the constructed URL of request.
Declaration
Objective-C
- (nonnull NSString *)buildRequestUrl:(nonnull FWBaseRequest *)request;
Parameters
request
The request to parse. Should not be nil.
Return Value
The result URL.
-
Undocumented
Declaration
Objective-C
- (FWHTTPSessionManager *)manager;
-
Undocumented
Declaration
Objective-C
- (void)resetURLSessionManager;
-
Undocumented
Declaration
Objective-C
- (void)resetURLSessionManagerWithConfiguration:(NSURLSessionConfiguration *)configuration;
-
Undocumented
Declaration
Objective-C
- (NSString *)incompleteDownloadTempCacheFolder;
-
Undocumented
Declaration
Objective-C
- (FWHTTPResponseSerializer *)httpResponseSerializer;
-
Undocumented
Declaration
Objective-C
- (FWJSONResponseSerializer *)jsonResponseSerializer;
-
Undocumented
Declaration
Objective-C
- (FWXMLParserResponseSerializer *)xmlParserResponseSerialzier;