mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
improved inspection of IO objects
This commit is contained in:
parent
da8bccb254
commit
f99893839d
@ -99,7 +99,7 @@ module HTTPX
|
||||
end
|
||||
|
||||
def inspect
|
||||
"#<#{self.class}#{@io.fileno}: #{@ip}:#{@port}>"
|
||||
"#<TCP(fd: #{@io.fileno}): #{@ip}:#{@port}>"
|
||||
end
|
||||
|
||||
private
|
||||
@ -181,5 +181,9 @@ module HTTPX
|
||||
def closed?
|
||||
super || !@negotiated
|
||||
end
|
||||
|
||||
def inspect
|
||||
"#<SSL(fd: #{@io.fileno}): #{@ip}:#{@port}>"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user