Force Jetty 7.0 for response with HTTP / 1.0

I am using Jetty 7.0's native mode and am looking for a way to get Jetty to respond with HTTP 1.0 rather than 1.1 (which seems to be the default).

Is there any parameter that I can use to control the protocol version on the server?

+3
source share
1 answer

The correct way to get Jetty to send HTTP / 1.0 responses is to send HTTP / 1.0 requests to the client.

As a rationale, consider this paragraph from the HTTP 1.1 specification:

, , HTTP- "HTTP/1.1", , , . , , HTTP- "HTTP/1.1" , HTTP/1.0. , HTTP-, . RFC 2145.

, HTTP/1.1, HTTP/1.1. , HTTP... .

0

Source: https://habr.com/ru/post/1753130/


All Articles