Provide a way for WebClient
to send a hint to close http connections
#4131
Labels
Milestone
WebClient
to send a hint to close http connections
#4131
Some users may want to disable
keep-alive
explicitly.Currently, armeria relies on server-side to send a
connection: close
when determining whether to close a connection upon request/response completion.armeria/core/src/main/java/com/linecorp/armeria/client/Http1ResponseDecoder.java
Line 165 in 73cc4ae
However,
armeria
doesn't allow users to specify theconnection
header when sending requestsarmeria/core/src/main/java/com/linecorp/armeria/client/ClientOptions.java
Line 115 in 73cc4ae
It may be worth introducing an option which allows the client to send a hint to close connections.
armeria
server currently handles such connection close hints correctly as well.The text was updated successfully, but these errors were encountered: