@JsType(isNative=true,
namespace="<global>",
name="Object")
public class ResourceHttpOptions
extends Object
Resource.head() method.| Modifier and Type | Field and Description |
|---|---|
JsObject |
headers
Additional HTTP headers to send with the request, if any.
|
String |
overrideMimeType
Overrides the MIME type returned by the server.
|
String |
responseType
The type of response.
|
| Constructor and Description |
|---|
ResourceHttpOptions() |
| Modifier and Type | Method and Description |
|---|---|
static ResourceHttpOptions |
create(String responseType)
Create instance of
ResourceHttpOptions object. |
static ResourceHttpOptions |
create(String responseType,
JsObject headers)
Create instance of
ResourceHttpOptions object. |
static ResourceHttpOptions |
create(String responseType,
JsObject headers,
String overrideMimeType)
Create instance of
ResourceHttpOptions object. |
@JsProperty public String responseType
@JsProperty public JsObject headers
@JsProperty public String overrideMimeType
@JsOverlay public static ResourceHttpOptions create(String responseType)
ResourceHttpOptions object.responseType - The type of response. This controls the type of item returned.ResourceHttpOptions object.@JsOverlay public static ResourceHttpOptions create(String responseType, JsObject headers)
ResourceHttpOptions object.responseType - The type of response. This controls the type of item returned.headers - Additional HTTP headers to send with the request, if any.ResourceHttpOptions object.@JsOverlay public static ResourceHttpOptions create(String responseType, JsObject headers, String overrideMimeType)
ResourceHttpOptions object.responseType - The type of response. This controls the type of item returned.headers - Additional HTTP headers to send with the request, if any.overrideMimeType - Overrides the MIME type returned by the server.ResourceHttpOptions object.Copyright © 2019. All rights reserved.