Class Net::HTTP::ConnectionPool::Connection
In: lib/net/http/connection_pool/connection.rb
Parent: Object

A light wrapper around Net::HTTP.

You should not need to construct connection objects yourself. You receive them as a response to {ConnectionPool#connection_for}.

Methods

key   new   proxy?   request   ssl?   ssl_verify_peer?  

Attributes

host  [R]  @return [String]
pool  [R]  @return [ConnectionPool]
port  [R]  @return [Integer]
proxy_address  [R]  @return [String,nil]
proxy_password  [R]  @return [String,nil]
proxy_port  [R]  @return [Integer,nil]
proxy_user  [R]  @return [String,nil]
read_timeout  [RW]  @return [Numeric,nil]
ssl  [R]  @return [Boolean]
ssl_ca_file  [R]  @return [String,nil]
ssl_ca_path  [R]  @return [String,nil]
ssl_verify_peer  [R]  @return [Boolean]

Public Class methods

Public Instance methods

@return [String] Returns a key that can be used to group connections

  that connection to the same host.

@return [Boolean] Returns true if this connection proxies requests.

@return [Boolean] Returns true if this connection requires SSL.

@return [Boolean] Returns true if ssl connections should verify the

  peer certificate.

[Validate]