public class RequestOptions
extends Object
Client
level.
NOTE: These are reserved for advanced use cases. In most situations, they shouldn't be needed.Constructor and Description |
---|
RequestOptions()
Construct empty request options.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getHeader(String name)
Get the value of a HTTP header.
|
String |
getUrlParameter(String name)
Get the value of a URL parameter.
|
RequestOptions |
setHeader(String name,
String value)
Set a HTTP header (untyped version).
|
RequestOptions |
setUrlParameter(String name,
String value)
Set a URL parameter (untyped version).
|
String |
toString() |
public RequestOptions setHeader(@NonNull String name, @Nullable String value)
name
- Name of the header.value
- Value of the header, or `null` to remove the header.public String getHeader(@NonNull String name)
name
- Name of the header.public RequestOptions setUrlParameter(@NonNull String name, @Nullable String value)
name
- Name of the parameter.value
- Value of the parameter, or `null` to remove it.public String getUrlParameter(@NonNull String name)
name
- Name of the parameter.@NonNull public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object