Documentation / @ember-data/request / index / RequestInfo
Interface: RequestInfo<RT, T>
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:253
Extends JavaScript's native Request object with additional properties specific to the RequestManager's capabilities.
Extends
Request
Type Parameters
RT
RT
= unknown
T
T
= unknown
Properties
___(unique) Symbol(EnableHydration)?
optional ___(unique) Symbol(EnableHydration): boolean;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:292
___(unique) Symbol(RequestSignature)?
optional ___(unique) Symbol(RequestSignature): RT;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:291
body?
optional body: null | BodyInit;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:234
Any body that you want to add to your request. Note that a GET or HEAD request may not have a body.
Inherited from
Request.body
cache?
optional cache: RequestCache;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:192
Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
Inherited from
Request.cache
cacheOptions?
optional cacheOptions: CacheOptions<T>;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:265
See
controller?
optional controller: AbortController;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:261
If provided, used instead of the AbortController auto-configured for each request by the RequestManager
credentials?
optional credentials: RequestCredentials;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:195
Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
Inherited from
Request.credentials
data?
optional data: Record<string, unknown>;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:284
data that a handler should convert into the query (GET) or body (POST).
Note: It is recommended that builders set query params and body directly in most scenarios.
destination?
optional destination: RequestDestination;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:198
Returns the kind of resource requested by request, e.g., "document" or "script".
Inherited from
Request.destination
disableTestWaiter?
optional disableTestWaiter: boolean;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:275
duplex?
optional duplex: "half";
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:242
When sending a ReadableStream as the body of a request, 'half' must be specified.
Inherited from
Request.duplex
headers?
optional headers: Headers;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:201
Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
Inherited from
Request.headers
integrity?
optional integrity: string;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:204
Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
Inherited from
Request.integrity
keepalive?
optional keepalive: boolean;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:207
Returns a boolean indicating whether or not request can outlive the global in which it was created.
Inherited from
Request.keepalive
method?
optional method: HTTPMethod;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:210
Returns request's HTTP method, which is "GET" by default.
Inherited from
Request.method
mode?
optional mode: RequestMode;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:216
Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
no-cors
is not allowed for streaming request bodies.
Inherited from
Request.mode
op?
optional op: string;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:267
options?
optional options: Record<string, unknown>;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:290
options specifically intended for handlers to utilize to process the request
records?
optional records: StableRecordIdentifier[];
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:274
The identifiers of the primary resources involved in the request (if any). This may be used by handlers to perform transactional operations on the store.
redirect?
optional redirect: RequestRedirect;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:219
Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
Inherited from
Request.redirect
referrer?
optional referrer: string;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:222
Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the Referer
header of the request being made.
Inherited from
Request.referrer
referrerPolicy?
optional referrerPolicy: ReferrerPolicy;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:225
Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
Inherited from
Request.referrerPolicy
signal?
optional signal: AbortSignal;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:228
Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
Inherited from
Request.signal
store?
optional store: unknown;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:266
url?
optional url: string;
Defined in: warp-drive-packages/core/declarations/types/request.d.ts:231
Returns the URL of request as a string.
Inherited from
Request.url