Method: HTTPX::TCP#close

Defined in:
lib/httpx/io/tcp.rb

#closeObject



181
182
183
184
185
186
187
188
189
# File 'lib/httpx/io/tcp.rb', line 181

def close
  return if @keep_open || closed?

  begin
    @io.close
  ensure
    transition(:closed)
  end
end