@JsType(isNative=true,
namespace="<global>",
name="Object")
public class ResourceOptions
extends Object
Resource.| Modifier and Type | Field and Description |
|---|---|
JsObject |
headers
Additional HTTP headers that will be sent.
|
DefaultProxy |
proxy
A proxy to be used when loading the resource.
|
JsObject |
queryParameters
An object containing query parameters that will be sent when retrieving the resource.
|
Request |
request
A Request object that will be used.
|
int |
retryAttempts
The number of times the retryCallback should be called before giving up.
|
Resource.RetryCallback |
retryCallback
The Function to call when a request for this resource fails.
|
JsObject |
templateValues
Key/Value pairs that are used to replace template values (eg.
|
String |
url
The url of the resource.
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceOptions |
create(String url)
Create new instance of
ResourceOptions. |
@JsProperty public String url
@JsProperty public JsObject queryParameters
@JsProperty public JsObject templateValues
@JsProperty public JsObject headers
@JsProperty public DefaultProxy proxy
@JsProperty public Resource.RetryCallback retryCallback
@JsProperty public int retryAttempts
@JsProperty public Request request
@JsOverlay public static ResourceOptions create(String url)
ResourceOptions.url - The url of the resource.ResourceOptions instance.Copyright © 2019. All rights reserved.