Class: T2Server::HttpsConnection
- Inherits:
-
HttpConnection
- Object
- HttpConnection
- T2Server::HttpsConnection
- Defined in:
- lib/t2-server/net/connection.rb
Overview
A class representing a https connection to a Taverna Server. This class should only ever be created via the T2Server::Connection factory class.
Instance Attribute Summary
Attributes inherited from HttpConnection
Instance Method Summary collapse
-
#initialize(uri, params = nil) ⇒ HttpsConnection
constructor
Open a https connection to the Taverna Server at the uri supplied.
Methods inherited from HttpConnection
#DELETE, #GET, #OPTIONS, #POST, #PUT
Constructor Details
#initialize(uri, params = nil) ⇒ HttpsConnection
Open a https connection to the Taverna Server at the uri supplied.
302 303 304 305 306 307 308 309 310 311 |
# File 'lib/t2-server/net/connection.rb', line 302 def initialize(uri, params = nil) super(uri, params) if OpenSSL::SSL::SSLContext::METHODS.include? @params[:ssl_version] @http.ssl_version = @params[:ssl_version] end set_peer_verification set_client_authentication end |