public final class SimpleHttpRequest extends ConfigurableHttpRequest
SimpleBody,
Serialized Form| Constructor and Description |
|---|
SimpleHttpRequest(String method,
org.apache.hc.core5.http.HttpHost host,
String path) |
SimpleHttpRequest(String method,
String path) |
SimpleHttpRequest(String method,
URI requestUri) |
| Modifier and Type | Method and Description |
|---|---|
static SimpleHttpRequest |
copy(org.apache.hc.core5.http.HttpRequest original) |
SimpleBody |
getBody() |
byte[] |
getBodyBytes() |
String |
getBodyText() |
org.apache.hc.core5.http.ContentType |
getContentType() |
void |
setBody(byte[] bodyBytes,
org.apache.hc.core5.http.ContentType contentType) |
void |
setBody(SimpleBody body) |
void |
setBody(String bodyText,
org.apache.hc.core5.http.ContentType contentType) |
getConfig, setConfigaddHeader, getAuthority, getMethod, getPath, getRequestUri, getScheme, getUri, getVersion, setAuthority, setHeader, setPath, setScheme, setUri, setVersion, toStringaddHeader, clear, containsHeader, countHeaders, getCondensedHeader, getFirstHeader, getHeader, getHeaders, getHeaders, getLastHeader, headerIterator, headerIterator, removeHeader, removeHeaders, removeHeaders, setHeader, setHeadersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SimpleHttpRequest(String method, org.apache.hc.core5.http.HttpHost host, String path)
public static SimpleHttpRequest copy(org.apache.hc.core5.http.HttpRequest original)
public void setBody(SimpleBody body)
public void setBody(byte[] bodyBytes,
org.apache.hc.core5.http.ContentType contentType)
public void setBody(String bodyText, org.apache.hc.core5.http.ContentType contentType)
public SimpleBody getBody()
public org.apache.hc.core5.http.ContentType getContentType()
public String getBodyText()
public byte[] getBodyBytes()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.