Flowdock
method

client

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Relayer
client() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionmailbox/lib/action_mailbox/relayer.rb, line 61
      def client
        @client ||= Net::HTTP.new(uri.host, uri.port).tap do |connection|
          if uri.scheme == "https"
            require "openssl"

            connection.use_ssl     = true
            connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
          end

          connection.open_timeout = 1
          connection.read_timeout = 10
        end
      end
Register or log in to add new notes.