HttpRequest
Defined in: packages/core/src/types.ts:135
A prepared HTTP request ready to be executed by the caller’s HTTP layer.
Core functions return this instead of calling fetch directly, preserving the
“functional core, imperative shell” architecture.
Properties
Section titled “Properties”
optionalbody?:string
Defined in: packages/core/src/types.ts:143
Request body, typically application/x-www-form-urlencoded for token requests.
headers
Section titled “headers”headers:
Record<string,string>
Defined in: packages/core/src/types.ts:141
HTTP headers to include with the request.
method
Section titled “method”method:
string
Defined in: packages/core/src/types.ts:139
HTTP method (e.g., "POST", "GET").
url:
string
Defined in: packages/core/src/types.ts:137
Fully qualified request URL.