Added connection header related functions.
- WSF_REQUEST.is_keep_alive_http_connection: BOOLEAN - HTTP_HEADER_MODIFIER.put_connection_keep_alive - HTTP_HEADER_MODIFIER.put_connection_close In Standalone request handler code, better detection of Connection: keep-alive header.
This commit is contained in:
@@ -1200,11 +1200,19 @@ feature -- HTTP_*
|
||||
|
||||
http_connection: detachable READABLE_STRING_8
|
||||
-- Contents of the Connection: header from the current wgi_request, if there is one.
|
||||
-- Example: 'Keep-Alive'.
|
||||
-- Example: 'keep-alive'.
|
||||
do
|
||||
Result := wgi_request.http_connection
|
||||
end
|
||||
|
||||
is_keep_alive_http_connection: BOOLEAN
|
||||
-- Is a keep-alive connection?
|
||||
do
|
||||
if attached http_connection as conn then
|
||||
Result := conn.starts_with ("keep-alive")
|
||||
end
|
||||
end
|
||||
|
||||
http_expect: detachable READABLE_STRING_8
|
||||
-- The Expect request-header field is used to indicate that particular server behaviors are required by the client.
|
||||
-- Example: '100-continue'.
|
||||
|
||||
Reference in New Issue
Block a user