Class: Sibit::Http
- Inherits:
-
Object
- Object
- Sibit::Http
- Defined in:
- lib/sibit/http.rb
Overview
This HTTP client will be used by default.
Instance Method Summary collapse
Instance Method Details
#client(uri) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/sibit/http.rb', line 33 def client(uri) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.read_timeout = 240 http end |