Class: Seahorse::Client::NetHttp::Handler Private
- Defined in:
- lib/seahorse/client/net_http/handler.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The default HTTP handler for Seahorse::Client. This is based on the Ruby’s ‘Net::HTTP`.
Defined Under Namespace
Classes: InvalidHttpVerbError, TruncatedBodyError
Constant Summary collapse
- NETWORK_ERRORS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ SocketError, EOFError, IOError, Timeout::Error, Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE, Errno::EINVAL, Errno::ETIMEDOUT, OpenSSL::SSL::SSLError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED ]
- DNS_ERROR_MESSAGES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ 'getaddrinfo: nodename nor servname provided, or not known', # MacOS 'getaddrinfo: Name or service not known' # GNU ]
Instance Attribute Summary
Attributes inherited from Handler
Instance Method Summary collapse
- #call(context) ⇒ Response private
- #pool_for(config) ⇒ ConnectionPool private
Methods inherited from Handler
Constructor Details
This class inherits a constructor from Seahorse::Client::Handler
Instance Method Details
#call(context) ⇒ Response
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 45 46 47 |
# File 'lib/seahorse/client/net_http/handler.rb', line 44 def call(context) transmit(context.config, context.http_request, context.http_response) Response.new(context: context) end |
#pool_for(config) ⇒ ConnectionPool
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
51 52 53 |
# File 'lib/seahorse/client/net_http/handler.rb', line 51 def pool_for(config) ConnectionPool.for((config)) end |