| Package | Description | 
|---|---|
| org.apache.hc.core5.benchmark | Apache Bench (AB) clone based on HttpCore. | 
| org.apache.hc.core5.http | Core HTTP transport component APIs. | 
| org.apache.hc.core5.http.impl.nio | Default implementation of HTTP/1.1 transport based on
 the asynchronous (non-blocking) I/O model. | 
| 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 | |
| org.apache.hc.core5.http2.impl.nio | Default implementation of HTTP/2 transport based on
 the asynchronous (non-blocking) I/O model. | 
| org.apache.hc.core5.testing.framework | 
| Modifier and Type | Method and Description | 
|---|---|
| ProtocolVersion | Results. getProtocolVersion() | 
| ProtocolVersion | Stats. getVersion() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Stats. setVersion(ProtocolVersion version) | 
| Constructor and Description | 
|---|
| Results(String serverName,
       ProtocolVersion protocolVersion,
       String hostName,
       int hostPort,
       String documentPath,
       long contentLength,
       int concurrencyLevel,
       long totalTimeMillis,
       long successCount,
       long failureCount,
       long keepAliveCount,
       long totalBytesRcvd,
       long totalBytesSent,
       long totalContentBytesRecvd) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HttpVersionRepresents an HTTP version. | 
| Modifier and Type | Method and Description | 
|---|---|
| ProtocolVersion | ProtocolVersionParser.Factory. create(int major,
      int minor) | 
| ProtocolVersion | HttpConnection. getProtocolVersion()Returns this connection's protocol version or  nullif unknown. | 
| ProtocolVersion | HttpMessage. getVersion()Returns protocol version or  nullwhen not available. | 
| static ProtocolVersion | ProtocolVersion. parse(CharSequence buffer,
     Tokenizer.Cursor cursor,
     Tokenizer.Delimiter delimiterPredicate) | 
| ProtocolVersion | ProtocolVersionParser. parse(CharSequence buffer,
     Tokenizer.Cursor cursor,
     Tokenizer.Delimiter delimiterPredicate) | 
| static ProtocolVersion | ProtocolVersion. parse(String s) | 
| ProtocolVersion | ProtocolVersionParser. parse(String protocol,
     CharSequence buffer,
     Tokenizer.Cursor cursor) | 
| ProtocolVersion | ProtocolVersionParser. parse(String protocol,
     CharSequence buffer,
     Tokenizer.Cursor cursor,
     Tokenizer.Delimiter delimiterPredicate) | 
| ProtocolVersion | ProtocolVersionParser. parse(String protocol,
     ProtocolVersionParser.Factory factory,
     CharSequence buffer,
     Tokenizer.Cursor cursor,
     Tokenizer.Delimiter delimiterPredicate) | 
| 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 | 
|---|---|
| ProtocolVersion | ClientHttp1IOEventHandler. getProtocolVersion() | 
| ProtocolVersion | ServerHttp1IOEventHandler. getProtocolVersion() | 
| Modifier and Type | Method and Description | 
|---|---|
| ClassicRequestBuilder | ClassicRequestBuilder. setVersion(ProtocolVersion version) | 
| ClassicResponseBuilder | ClassicResponseBuilder. setVersion(ProtocolVersion version) | 
| Modifier and Type | Method and Description | 
|---|---|
| ProtocolVersion | RequestLine. getProtocolVersion() | 
| ProtocolVersion | StatusLine. getProtocolVersion() | 
| ProtocolVersion | BasicHttpRequest. getVersion() | 
| ProtocolVersion | BasicHttpResponse. getVersion() | 
| ProtocolVersion | AbstractMessageWrapper. getVersion() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BasicHttpRequest. setVersion(ProtocolVersion version) | 
| void | BasicHttpResponse. setVersion(ProtocolVersion version) | 
| void | AbstractMessageWrapper. 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 | 
|---|---|
| AsyncRequestBuilder | AsyncRequestBuilder. setVersion(ProtocolVersion version) | 
| AsyncPushBuilder | AsyncPushBuilder. setVersion(ProtocolVersion version) | 
| AsyncResponseBuilder | AsyncResponseBuilder. setVersion(ProtocolVersion version) | 
| Modifier and Type | Method and Description | 
|---|---|
| ProtocolVersion | HttpCoreContext. getProtocolVersion()Represents the protocol version used by the message exchange. | 
| ProtocolVersion | BasicHttpContext. getProtocolVersion()Deprecated.  | 
| ProtocolVersion | HttpContext. getProtocolVersion()Returns protocol version used in this context. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HttpCoreContext. setProtocolVersion(ProtocolVersion version) | 
| void | BasicHttpContext. setProtocolVersion(ProtocolVersion version)Deprecated.  | 
| void | HttpContext. setProtocolVersion(ProtocolVersion version)Sets protocol version used in this context. | 
| Modifier and Type | Field and Description | 
|---|---|
| ProtocolVersion | TLS. version | 
| Modifier and Type | Method and Description | 
|---|---|
| ProtocolVersion | TLS. getVersion()Gets the version. | 
| static ProtocolVersion | TLS. parse(CharSequence buffer,
     Tokenizer.Cursor cursor,
     Tokenizer.Delimiter delimiterPredicate) | 
| 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 | 
|---|---|
| AbstractRequestBuilder<T> | AbstractRequestBuilder. setVersion(ProtocolVersion version) | 
| BasicRequestBuilder | BasicRequestBuilder. setVersion(ProtocolVersion version) | 
| AbstractResponseBuilder<T> | AbstractResponseBuilder. setVersion(ProtocolVersion version) | 
| BasicResponseBuilder | BasicResponseBuilder. setVersion(ProtocolVersion version) | 
| AbstractMessageBuilder<T> | AbstractMessageBuilder. setVersion(ProtocolVersion version) | 
| Modifier and Type | Method and Description | 
|---|---|
| ProtocolVersion | HttpProtocolNegotiator. getProtocolVersion() | 
| Modifier and Type | Field and Description | 
|---|---|
| static ProtocolVersion | TestingFramework. DEFAULT_REQUEST_PROTOCOL_VERSIONIf a test does not specify a protocol version, this one is used. | 
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.