@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Request")
public class Request
extends JsObject
| Constructor and Description |
|---|
Request(Request input)
The Request() constructor creates a new Request object.
|
Request(RequestInfo input)
The Request() constructor creates a new Request object.
|
Request(RequestInfo input,
RequestInit init)
The Request() constructor creates a new Request object.
|
Request(Request input,
RequestInit init)
The Request() constructor creates a new Request object.
|
Request(java.lang.String input)
The Request() constructor creates a new Request object.
|
Request(java.lang.String input,
RequestInit init)
The Request() constructor creates a new Request object.
|
| Modifier and Type | Method and Description |
|---|---|
Promise<ArrayBuffer> |
arrayBuffer()
The arrayBuffer() method of the Body mixin takes a Response stream and reads it to completion.
|
Promise<Blob> |
blob()
The blob() method of the Body mixin takes a Response stream and reads it to completion.
|
ReadableStream |
body()
The body read-only property of the Body mixin is a simple getter used to expose a ReadableStream of the body contents.
|
boolean |
bodyUsed()
The bodyUsed read-only property of the Body mixin contains a Boolean that indicates whether the body has been read yet.
|
java.lang.String |
cache()
The cache read-only property of the Request interface contains the cache mode of the request.
|
Request |
clone_()
The clone() method of the Request interface creates a copy of the current Request object.
|
java.lang.String |
credentials()
The credentials read-only property of the Request interface indicates whether the user agent should send cookies from the other domain in the case of cross-origin requests.
|
java.lang.String |
destination()
The destination read-only property of the Request interface returns a string describing the type of content being requested.
|
Promise<FormData> |
formData()
The formData() method of the Body mixin takes a Response stream and reads it to completion.
|
Headers |
headers()
The headers read-only property of the Request interface contains the Headers object associated with the request.
|
java.lang.String |
integrity()
The integrity read-only property of the Request interface contains the subresource integrity value of the request.
|
boolean |
isHistoryNavigation() |
boolean |
isReloadNavigation() |
Promise<jsinterop.base.Any> |
json()
The json() method of the Body mixin takes a Response stream and reads it to completion.
|
boolean |
keepalive() |
java.lang.String |
method()
The method read-only property of the Request interface contains the request's method (GET, POST, etc.)
|
java.lang.String |
mode()
The mode read-only property of the Request interface contains the mode of the request (e.g., cors, no-cors, same-origin, or navigate.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
|
java.lang.String |
redirect()
The redirect read-only property of the Request interface contains the mode for how redirects are handled.
|
java.lang.String |
referrer()
The referrer read-only property of the Request interface is set by the user agent to be the referrer of the Request.
|
java.lang.String |
referrerPolicy()
The referrerPolicy read-only property of the Request interface returns the referrer policy, which governs what referrer information, sent in the Referer header, should be included with the request.
|
AbortSignal |
signal() |
Promise<java.lang.String> |
text()
The text() method of the Body mixin takes a Response stream and reads it to completion.
|
java.lang.String |
url()
The url read-only property of the Request interface contains the URL of the request.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic Request(@Nonnull
RequestInfo input,
@Nonnull
RequestInit init)
public Request(@Nonnull
Request input,
@Nonnull
RequestInit init)
public Request(@Nonnull
java.lang.String input,
@Nonnull
RequestInit init)
public Request(@Nonnull
RequestInfo input)
public Request(@Nonnull
Request input)
public Request(@Nonnull
java.lang.String input)
@JsProperty(name="body") @Nullable public ReadableStream body()
@JsProperty(name="bodyUsed") public boolean bodyUsed()
@JsProperty(name="cache") @Nonnull @RequestCache public java.lang.String cache()
@JsProperty(name="credentials") @Nonnull @RequestCredentials public java.lang.String credentials()
@JsProperty(name="destination") @Nonnull @RequestDestination public java.lang.String destination()
@JsProperty(name="headers") @Nonnull public Headers headers()
@JsProperty(name="integrity") @Nonnull public java.lang.String integrity()
@JsProperty(name="isHistoryNavigation") public boolean isHistoryNavigation()
@JsProperty(name="isReloadNavigation") public boolean isReloadNavigation()
@JsProperty(name="keepalive") public boolean keepalive()
@JsProperty(name="method") @Nonnull public java.lang.String method()
@JsProperty(name="mode") @Nonnull @RequestMode public java.lang.String mode()
@JsProperty(name="redirect") @Nonnull @RequestRedirect public java.lang.String redirect()
@JsProperty(name="referrer") @Nonnull public java.lang.String referrer()
@JsProperty(name="referrerPolicy") @Nonnull @ReferrerPolicy public java.lang.String referrerPolicy()
@JsProperty(name="signal") @Nonnull public AbortSignal signal()
@JsProperty(name="url") @Nonnull public java.lang.String url()
@JsMethod(name="clone") @Nonnull public Request clone_()
@Nonnull public Promise<ArrayBuffer> arrayBuffer()
@Nonnull public Promise<Blob> blob()
@Nonnull public Promise<FormData> formData()
@Nonnull public Promise<jsinterop.base.Any> json()
@Nonnull public Promise<java.lang.String> text()