trackkit / dispatcher/types / NetworkItem
Type Alias: NetworkItem
NetworkItem =
object
Defined in: dispatcher/types.ts:531
Shape for direct network work items produced by providers/adapters.
These are "fire this HTTP request" items – not the facade-level "pageview"/"track" closures.
Properties
id
id:
string
Defined in: dispatcher/types.ts:533
Stable request identifier.
type
type:
"track"|"pageview"|"identify"
Defined in: dispatcher/types.ts:535
High-level operation type (pageview, track, identify).
url
url:
string
Defined in: dispatcher/types.ts:537
Target URL for the request.
body
body:
unknown
Defined in: dispatcher/types.ts:539
Request body (typically serialised to JSON by the dispatcher).
init?
optionalinit:RequestInit
Defined in: dispatcher/types.ts:541
Optional fetch initialiser overrides.
size?
optionalsize:number
Defined in: dispatcher/types.ts:547
Optional size estimate in bytes.
If omitted, the dispatcher estimates size from body using JSON length.