We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656d247 commit 6b92dedCopy full SHA for 6b92ded
lib/protocol/http1/connection.rb
@@ -59,7 +59,14 @@ def initialize(stream, persistent = true)
59
attr :stream
60
61
# Whether the connection is persistent.
62
- attr :persistent
+ # This determines what connection headers are sent in the response and whether
63
+ # the connection can be reused after the response is sent.
64
+ # This setting is automatically managed according to the nature of the request
65
+ # and response.
66
+ # Changing to false is safe.
67
+ # Changing to true from outside this class should generally be avoided and,
68
+ # depending on the response semantics, may be reset to false anyway.
69
+ attr_accessor :persistent
70
71
# The number of requests processed.
72
attr :count
0 commit comments