You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
transform a HTTP 1.0 response from a backend to a HTTP 1.1 response to the client #16
there are a few changes in the behaviour, like keep alive: in HTTP 1.0 you must specify Connection: keep-alive, while HTTP 1.1 is keep-alive by default, and you must specify Connection: close if you don't want that behaviour.
More generally, We should think about how to separate protocol implementations between frontend and backend, since we might need that for HTTP/2.
Narrowing this 2016 issue to what actually remains.
Done since:
Frontend/backend protocol implementations are fully separated (the H2 multiplexer converts between front and back protocols — an H2 client can be served from an HTTP/1.x backend).
Keep-alive semantics are normalized per side: lib/src/protocol/kawa_h1/editor.rs tracks keep_alive_frontend/keep_alive_backend independently and manages Connection headers accordingly.
Still open (the literal ask):
A backend HTTP/1.0 status line is forwarded to the client verbatim — kawa preserves the version on re-serialization (Version::V10 → "HTTP/1.0", kawa src/protocol/h1/converter.rs). nginx-style behavior would have the proxy always answer with its own protocol version.
Scope of this issue is now exactly that: normalize the response version (and the implied version-specific semantics) on the frontend side.
Activity
BlackYoup commentedon Apr 20, 2017
What would be the requirements here ? I guess only changing the HTTP version in the response is not enough ?
Geal commentedon Apr 20, 2017
there are a few changes in the behaviour, like keep alive: in HTTP 1.0 you must specify
Connection: keep-alive, while HTTP 1.1 is keep-alive by default, and you must specifyConnection: closeif you don't want that behaviour.More generally, We should think about how to separate protocol implementations between frontend and backend, since we might need that for HTTP/2.
fix(h2): protocol correctness — CONTINUATION, Content-Length, RST_STR…
fix(h2): protocol correctness — CONTINUATION, Content-Length, RST_STR…
fix(h2): protocol correctness — CONTINUATION, Content-Length, RST_STR…
fix(h2): protocol correctness — CONTINUATION, Content-Length, RST_STR…
FlorentinDUBOIS commentedon Jun 5, 2026
Narrowing this 2016 issue to what actually remains.
Done since:
lib/src/protocol/kawa_h1/editor.rstrackskeep_alive_frontend/keep_alive_backendindependently and managesConnectionheaders accordingly.Still open (the literal ask):
HTTP/1.0status line is forwarded to the client verbatim — kawa preserves the version on re-serialization (Version::V10 → "HTTP/1.0", kawasrc/protocol/h1/converter.rs). nginx-style behavior would have the proxy always answer with its own protocol version.Scope of this issue is now exactly that: normalize the response version (and the implied version-specific semantics) on the frontend side.
fix(h2): protocol correctness — CONTINUATION, Content-Length, RST_STR…
fix(h1): forward HTTP/1.0 backend responses as HTTP/1.1
fix(h1): forward HTTP/1.0 backend responses as HTTP/1.1 (#1683)