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