The version of an HTTP message is indicated by an HTTP-Version field in the first line of the message.
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpVersion[] | ALL
All HTTP versions known to HttpCore. |
| public static final HttpVersion | DEFAULT
HTTP/1.1 is default |
| public static final String | HTTP
The protocol name. |
| public static final HttpVersion | HTTP_0_9
HTTP protocol version 0.9 |
| public static final HttpVersion | HTTP_1_0
HTTP protocol version 1.0 |
| public static final HttpVersion | HTTP_1_1
HTTP protocol version 1.1 |
| public static final HttpVersion | |
| public static final HttpVersion | HTTP_2_0
HTTP protocol version 2.0 |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | HttpVersion(final int
the major version number of the HTTP protocol major, final int the minor version number of the HTTP protocol minor)Creates an HTTP protocol version designator. |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpVersion | Returns: an instance ofHttpVersion with the argument version, never null.the major version major, final int the minor version minor)Gets a specific instance or creates a new one. |
| ALL | back to summary |
|---|---|
| public static final HttpVersion[] ALL All HTTP versions known to HttpCore. | |
| DEFAULT | back to summary |
|---|---|
| public static final HttpVersion DEFAULT HTTP/1.1 is default | |
| HTTP | back to summary |
|---|---|
| public static final String HTTP The protocol name. | |
| HTTP_0_9 | back to summary |
|---|---|
| public static final HttpVersion HTTP_0_9 HTTP protocol version 0.9 | |
| HTTP_1_0 | back to summary |
|---|---|
| public static final HttpVersion HTTP_1_0 HTTP protocol version 1.0 | |
| HTTP_1_1 | back to summary |
|---|---|
| public static final HttpVersion HTTP_1_1 HTTP protocol version 1.1 | |
| HTTP_2 | back to summary |
|---|---|
| public static final HttpVersion HTTP_2 | |
| HTTP_2_0 | back to summary |
|---|---|
| public static final HttpVersion HTTP_2_0 HTTP protocol version 2.0 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| HttpVersion | back to summary |
|---|---|
| public HttpVersion(final int major, final int minor) Creates an HTTP protocol version designator.
| |
| get | back to summary |
|---|---|
| public static HttpVersion get(final int major, final int minor) Gets a specific instance or creates a new one.
| |