A Downloader whose every request is session-signed and retried on a stale session.
More...
#include <SessionDownloader.h>
|
| int | apiTag |
| | The request's API tag, used to decide the session-retry behaviour.
|
| int | tag |
| | An integer tag the caller may attach to the request.
|
|
|
NSURLRequest * | request |
| | The request being run.
|
|
NSURLSession * | session |
| | The session the request runs on.
|
|
NSURLSessionTask * | sessionTask |
| | The task carrying the request.
|
|
NSMutableData * | data |
| | The response body accumulated so far.
|
|
int64_t | dl_size |
| | The total byte count the response declared.
|
|
__weak id< DownloaderDelegate > | delegate |
| | The object told how the request finished.
|
|
int | _tag |
| | The caller's tag, distinguishing concurrent requests sharing one delegate.
|
A Downloader whose every request is session-signed and retried on a stale session.
◆ initWithURL:delegate:
| - (instancetype) initWithURL: |
|
(nullable NSURL *) | url |
| delegate: |
|
(nullable id) | aDelegate |
Builds a signed GET-style request that carries a fresh random cnonce.
- Parameters
-
| url | The endpoint. |
| aDelegate | The object told how the request finished. |
- Returns
- The initialised client.
- Ghidra address:
- 0xffb48
◆ initWithURL:postData:delegate:
| - (instancetype) initWithURL: |
|
(nullable NSURL *) | url |
| postData: |
|
(nullable NSData *) | postData |
| delegate: |
|
(nullable id) | aDelegate |
Builds a signed POST from a URL and a ready request body.
- Parameters
-
| url | The endpoint. |
| postData | The request body. |
| aDelegate | The object told how the request finished. |
- Returns
- The initialised client.
- Ghidra address:
- 0xffe1c
◆ initWithURL:postDictionary:delegate:
| - (instancetype) initWithURL: |
|
(nullable NSURL *) | url |
| postDictionary: |
|
(nullable NSDictionary *) | postDictionary |
| delegate: |
|
(nullable id) | aDelegate |
Builds a signed POST from a URL and a parameter dictionary.
Copies postDictionary, ensures it carries a cnonce (a random one when absent), merges every +[JubeatAppDelegate clientInfo] entry, JSON-serialises it, and chains to -initWithURL:postData:delegate: .
- Parameters
-
| url | The endpoint. |
| postDictionary | The request parameters. |
| aDelegate | The object told how the request finished. |
- Returns
- The initialised client.
- Ghidra address:
- 0xff324
◆ apiTag
The request's API tag, used to decide the session-retry behaviour.
- Ghidra address:
- 0x100e3c
The documentation for this class was generated from the following file: