public class HttpOptions extends HttpUriRequestBase
Modifier and Type | Field and Description |
---|---|
static String |
METHOD_NAME
The method name "OPTIONS".
|
Constructor and Description |
---|
HttpOptions(String uri)
Constructs a new instance initialized with the given URI.
|
HttpOptions(URI uri)
Constructs a new instance initialized with the given URI.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllowedMethods(org.apache.hc.core5.http.HttpResponse response)
Gets the allowed method names defined by
"Allow" headers. |
String |
getMethod() |
abort, cancel, getConfig, isAborted, isCancelled, reset, setConfig, setDependency, toString
getEntity, setEntity
addHeader, getAuthority, getPath, getRequestUri, getScheme, getUri, getVersion, setAbsoluteRequestUri, setAuthority, setHeader, setPath, setScheme, setUri, setVersion
addHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeaders
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAuthority, getPath, getRequestUri, getScheme, getUri, setAuthority, setPath, setScheme, setUri
addHeader, addHeader, getVersion, removeHeader, removeHeaders, setHeader, setHeader, setHeaders, setVersion
public static final String METHOD_NAME
public HttpOptions(URI uri)
uri
- a non-null request URI.IllegalArgumentException
- if the uri is null.public HttpOptions(String uri)
uri
- a non-null request URI.IllegalArgumentException
- if the uri is invalid.public String getMethod()
getMethod
in interface org.apache.hc.core5.http.HttpRequest
getMethod
in class org.apache.hc.core5.http.message.BasicHttpRequest
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.