app/controllers/application_controller.rb
##
# Build a http request using the URI specified, sets the timeout of the 
# operation to 10 seconds for both opening the connection and reading.
#
Build a http request using the URI specified, sets the timeout of the
operation to 10 seconds for both opening the connection and reading.
Build a http request using the URI specified sets the timeout of the operation to 10 seconds for both opening the connection and reading .
def build_http(uri)
    http = Net::HTTP.new(uri.host, uri.port)
    http.open_timeout = 60
    http.read_timeout = 60
    return http
  end
def build_http ( uri ) http = Net :: HTTP . new ( uri . host , uri . port ) http . open_timeout = 60 http . read_timeout = 60 return http end
Build a http request using the URI specified, sets the timeout of the
operation to 10 seconds for both opening the connection and reading.
Build a http request using the URI specified sets the timeout of the operation to 10 seconds for both opening the connection and reading .
uri
<not_specific>