Readonly[toString tag used by Object.prototype.toString, always SeamHttpRequest.
The body sent with the request, if any.
The HTTP request method.
The query parameters sent with the request, if any.
The request pathname, e.g., /devices/get.
The key of the API response object containing the response data, or undefined if the endpoint returns an empty response.
The full request URL including any serialized query parameters.
Executes the request and handles any rejection with onrejected.
Enables awaiting a SeamHttpRequest like a Promise.
Sends the request and returns the response data.
If the response contains an action attempt,
waits for the action attempt to resolve
according to the waitForActionAttempt option.
Sends the request and returns the entire response body without waiting for any action attempt to resolve.
Executes the request and calls onfinally once the request settles.
Enables awaiting a SeamHttpRequest like a Promise.
Optionalonfinally: (() => void) | nullExecutes the request and resolves with the response data. Enables awaiting a SeamHttpRequest like a Promise.
Optionalonfulfilled: Optionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null
A lazy request to the Seam API.
Creating a SeamHttpRequest does not send anything over the network. The request is sent once
executeis called, or when the request is awaited like a Promise, e.g., withawait,then,catch, orfinally. When the response contains an action attempt, awaiting the request also waits for the action attempt to resolve according to thewaitForActionAttemptoption.Before sending, the request may be inspected with
url,pathname,method,params, andbody.