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.
Attaches a callback for only the rejection of the Promise.
A Promise for the completion of the callback.
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.
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Optionalonfinally: (() => void) | null
The callback to execute when the Promise is settled (fulfilled or rejected).
A Promise for the completion of the callback.
Attaches callbacks for the resolution and/or rejection of the Promise.
Optionalonfulfilled: The callback to execute when the Promise is resolved.
Optionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null
The callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
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.