Package | Description |
---|---|
org.apache.hc.core5.http |
Core HTTP transport component APIs.
|
org.apache.hc.core5.http.io.support |
Support classes for the classic (blocking) I/O model.
|
org.apache.hc.core5.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous I/O model.
|
org.apache.hc.core5.http.protocol |
Core HTTP protocol interceptors.
|
org.apache.hc.core5.http.ssl | |
org.apache.hc.core5.http.support |
Modifier and Type | Class and Description |
---|---|
class |
HttpVersion
Represents an HTTP version.
|
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
HttpConnection.getProtocolVersion()
Returns this connection's protocol version or
null if unknown. |
ProtocolVersion |
HttpMessage.getVersion()
Returns protocol version or
null when not available. |
Modifier and Type | Method and Description |
---|---|
int |
ProtocolVersion.compareToVersion(ProtocolVersion that)
Compares this protocol version with another one.
|
boolean |
ProtocolVersion.greaterEquals(ProtocolVersion version)
Tests if this protocol version is greater or equal to the given one.
|
boolean |
ProtocolVersion.isComparable(ProtocolVersion that)
Checks whether this protocol can be compared to another one.
|
boolean |
ProtocolVersion.lessEquals(ProtocolVersion version)
Tests if this protocol version is less or equal to the given one.
|
void |
HttpMessage.setVersion(ProtocolVersion version)
Sets protocol version.
|
Constructor and Description |
---|
UnsupportedHttpVersionException(ProtocolVersion protocolVersion)
Creates an exception with a detail message for the given ProtocolVersion.
|
Modifier and Type | Method and Description |
---|---|
ClassicResponseBuilder |
ClassicResponseBuilder.setVersion(ProtocolVersion version) |
ClassicRequestBuilder |
ClassicRequestBuilder.setVersion(ProtocolVersion version) |
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
RequestLine.getProtocolVersion() |
ProtocolVersion |
StatusLine.getProtocolVersion() |
ProtocolVersion |
AbstractMessageWrapper.getVersion() |
ProtocolVersion |
BasicHttpResponse.getVersion() |
ProtocolVersion |
BasicHttpRequest.getVersion() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractMessageWrapper.setVersion(ProtocolVersion version) |
void |
BasicHttpResponse.setVersion(ProtocolVersion version) |
void |
BasicHttpRequest.setVersion(ProtocolVersion version) |
Constructor and Description |
---|
BasicLineParser(ProtocolVersion proto)
Creates a new line parser for the given HTTP-like protocol.
|
RequestLine(String method,
String uri,
ProtocolVersion version) |
StatusLine(ProtocolVersion version,
int statusCode,
String reasonPhrase)
Creates a new status line with the given version, status, and reason.
|
Modifier and Type | Method and Description |
---|---|
AsyncResponseBuilder |
AsyncResponseBuilder.setVersion(ProtocolVersion version) |
AsyncRequestBuilder |
AsyncRequestBuilder.setVersion(ProtocolVersion version) |
AsyncPushBuilder |
AsyncPushBuilder.setVersion(ProtocolVersion version) |
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
BasicHttpContext.getProtocolVersion() |
ProtocolVersion |
HttpContext.getProtocolVersion()
Returns protocol version used in this context.
|
ProtocolVersion |
HttpCoreContext.getProtocolVersion() |
Modifier and Type | Method and Description |
---|---|
void |
BasicHttpContext.setProtocolVersion(ProtocolVersion version) |
void |
HttpContext.setProtocolVersion(ProtocolVersion version)
Sets protocol version used in this context.
|
void |
HttpCoreContext.setProtocolVersion(ProtocolVersion version) |
Modifier and Type | Field and Description |
---|---|
ProtocolVersion |
TLS.version |
Modifier and Type | Method and Description |
---|---|
static ProtocolVersion |
TLS.parse(String s) |
Modifier and Type | Method and Description |
---|---|
boolean |
TLS.greaterEquals(ProtocolVersion protocolVersion) |
boolean |
TLS.isComparable(ProtocolVersion protocolVersion) |
boolean |
TLS.isSame(ProtocolVersion protocolVersion) |
boolean |
TLS.lessEquals(ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
ProtocolVersion |
AbstractMessageBuilder.getVersion() |
Modifier and Type | Method and Description |
---|---|
AbstractResponseBuilder<T> |
AbstractResponseBuilder.setVersion(ProtocolVersion version) |
BasicRequestBuilder |
BasicRequestBuilder.setVersion(ProtocolVersion version) |
BasicResponseBuilder |
BasicResponseBuilder.setVersion(ProtocolVersion version) |
AbstractRequestBuilder<T> |
AbstractRequestBuilder.setVersion(ProtocolVersion version) |
AbstractMessageBuilder<T> |
AbstractMessageBuilder.setVersion(ProtocolVersion version) |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.