The version of an HTTP message is indicated by an HTTP-Version field in the first line of the message.
HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
| Modifier and Type | Field and Description |
|---|---|
| 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 |
| 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)Create an HTTP protocol version designator. |
| Modifier and Type | Method and Description |
|---|---|
| public ProtocolVersion | Returns: an instance ofHttpVersion with the argument versionthe major version major, final int the minor version minor)Overrides org. |
| 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 | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| HttpVersion | back to summary |
|---|---|
| public HttpVersion(final int major, final int minor) Create an HTTP protocol version designator.
| |
| forVersion | back to summary |
|---|---|
| public ProtocolVersion forVersion(final int major, final int minor) Overrides org. Obtains a specific HTTP version.
| |