diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-09-18 13:24:39 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-11 12:19:27 -0400 |
commit | 362be7b3bb92b8d5bb7f7530571fab3f1c6378dd (patch) | |
tree | d44409cbd22cd8792d1cc654cca71c1dc6e1c22d /src/connections.h | |
parent | 869c778aa74e889bf7ab529e63ec88dee7787db9 (diff) | |
download | lighttpd-git-362be7b3bb92b8d5bb7f7530571fab3f1c6378dd.tar.gz |
[core] relay 1xx from backend over HTTP/1.1
relay 1xx from backend over HTTP/1.1, e.g. 103 Early Hints
(if client is connected using HTTP/1.1)
enabled by default unless disabled in lighttpd.conf with:
server.feature-flags += ( "server.h1-discard-backend-1xx" = "enable" )
Warning: backends which send 103 Early Hints should check User-Agent
before doing so since naive clients might not handle unexpected 1xx.
Some clients may take the 1xx response as the final response, expecting
only one response. Some clients might not properly handle 100 Continue
if the client did not send Expect: 100-continue with the request.
https://tools.ietf.org/html/rfc8297#section-3 Security Considerations
x-ref:
An HTTP Status Code for Indicating Hints (103 Early Hints)
https://tools.ietf.org/html/rfc8297
Diffstat (limited to 'src/connections.h')
-rw-r--r-- | src/connections.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connections.h b/src/connections.h index 300c0e03..e0be36f5 100644 --- a/src/connections.h +++ b/src/connections.h @@ -12,6 +12,8 @@ void connection_graceful_shutdown_maint (server *srv); void connection_periodic_maint (server *srv, time_t cur_ts); +int connection_send_1xx (request_st *r, connection *con); + connection * connection_accept(server *srv, server_socket *srv_sock); connection * connection_accepted(server *srv, server_socket *srv_socket, sock_addr *cnt_addr, int cnt); |