Interface: RspTransportOptions
Defined in: rsp-transport.ts:47
Properties
allowInsecureBaseUrl?
optional allowInsecureBaseUrl?: boolean;
Defined in: rsp-transport.ts:67
Escape hatch for a lab without TLS; refuses plain http: otherwise.
baseUrl
baseUrl: string;
Defined in: rsp-transport.ts:49
Host-configured API root; /v1/... is appended.
chunkBytes?
optional chunkBytes?: number;
Defined in: rsp-transport.ts:63
tus PATCH size. docs/10 §2.7 default.
clientVersion?
optional clientVersion?: string;
Defined in: rsp-transport.ts:61
Version half of X-Rasd-Client: @rasd/sync/<version>.
deviceId
deviceId: string;
Defined in: rsp-transport.ts:59
UUID v7 generated once per install; sent as X-Rasd-Device.
fetch?
optional fetch?: FetchLike;
Defined in: rsp-transport.ts:57
Inject for TLS pinning, a proxy, or a React Native polyfill.
getAuthToken
getAuthToken: (ctx) => string | Promise<string>;
Defined in: rsp-transport.ts:55
Host-delegated auth. The engine never manages identity (spine §8); the
forceRefresh hint is passed after a 401 and hosts implementing the plain
zero-argument signature can ignore it (docs/10 §4.1).
Parameters
| Parameter | Type |
|---|---|
ctx | { forceRefresh: boolean; } |
ctx.forceRefresh | boolean |
Returns
string | Promise<string>
onLicenseToken?
optional onLicenseToken?: (token, meta?) => void;
Defined in: rsp-transport.ts:65
Called with every fresh X-Rasd-License token seen on a response.
Parameters
| Parameter | Type |
|---|---|
token | string |
meta? | LicenseTokenMeta |
Returns
void