Class: Sibit::Http
- Inherits:
-
Object
- Object
- Sibit::Http
- Defined in:
- lib/sibit/http.rb
Overview
HTTP interface.
- Author
-
Yegor Bugayenko ([email protected])
- Copyright
-
Copyright © 2019-2026 Yegor Bugayenko
- License
-
MIT
Instance Method Summary collapse
Instance Method Details
#client(uri) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/sibit/http.rb', line 16 def client(uri) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true http.read_timeout = 240 http end |