Class: Dialed::HTTP::NilConnection
Instance Attribute Summary
Attributes inherited from Connection
#configuration
Instance Method Summary
collapse
Methods inherited from Connection
#address, #close, #connect, #ping, #reconnect!
Constructor Details
Returns a new instance of NilConnection.
6
7
8
|
# File 'lib/dialed/http/nil_connection.rb', line 6
def initialize
super(uri: nil, version: nil, ssl_context: nil)
end
|
Instance Method Details
#closed? ⇒ Boolean
38
39
40
|
# File 'lib/dialed/http/nil_connection.rb', line 38
def closed?
true
end
|
#http1? ⇒ Boolean
26
27
28
|
# File 'lib/dialed/http/nil_connection.rb', line 26
def http1?
false
end
|
#http2? ⇒ Boolean
22
23
24
|
# File 'lib/dialed/http/nil_connection.rb', line 22
def http2?
false
end
|
#nil_connection? ⇒ Boolean
34
35
36
|
# File 'lib/dialed/http/nil_connection.rb', line 34
def nil_connection?
true
end
|
#open? ⇒ Boolean
30
31
32
|
# File 'lib/dialed/http/nil_connection.rb', line 30
def open?
false
end
|
#remote_host ⇒ Object
10
11
12
|
# File 'lib/dialed/http/nil_connection.rb', line 10
def remote_host
nil
end
|
#remote_uri ⇒ Object
14
15
16
|
# File 'lib/dialed/http/nil_connection.rb', line 14
def remote_uri
nil
end
|
#ssl_context ⇒ Object
18
19
20
|
# File 'lib/dialed/http/nil_connection.rb', line 18
def ssl_context
nil
end
|