Class: FastImage

Inherits:
Object
  • Object
show all
Defined in:
lib/freedom_patches/fast_image.rb

Instance Method Summary collapse

Instance Method Details

#setup_httpObject



4
5
6
7
8
9
10
# File 'lib/freedom_patches/fast_image.rb', line 4

def setup_http
  @http = FinalDestination::HTTP.new(@parsed_uri.host, @parsed_uri.port)
  @http.use_ssl = (@parsed_uri.scheme == "https")
  @http.verify_mode = OpenSSL::SSL::VERIFY_NONE
  @http.open_timeout = @options[:timeout]
  @http.read_timeout = @options[:timeout]
end