Class: Integrations::Clients::HTTP
- Inherits:
-
Object
- Object
- Integrations::Clients::HTTP
- Defined in:
- lib/integrations/clients/http.rb
Class Method Summary collapse
- .delete(path, options = {}, &block) ⇒ Object
- .get(path, options = {}, &block) ⇒ Object
- .head(path, options = {}, &block) ⇒ Object
- .post(path, options = {}, &block) ⇒ Object
- .put(path, options = {}, &block) ⇒ Object
- .try_get(path, options = {}, &block) ⇒ Object
Class Method Details
.delete(path, options = {}, &block) ⇒ Object
7 8 9 10 11 |
# File 'lib/integrations/clients/http.rb', line 7 def delete(path, = {}, &block) [:max_bytes] ||= default_max_bytes Gitlab::HTTP.delete(path, , &block) end |
.get(path, options = {}, &block) ⇒ Object
19 20 21 22 23 |
# File 'lib/integrations/clients/http.rb', line 19 def get(path, = {}, &block) [:max_bytes] ||= default_max_bytes Gitlab::HTTP.get(path, , &block) end |
.head(path, options = {}, &block) ⇒ Object
13 14 15 16 17 |
# File 'lib/integrations/clients/http.rb', line 13 def head(path, = {}, &block) [:max_bytes] ||= default_max_bytes Gitlab::HTTP.head(path, , &block) end |
.post(path, options = {}, &block) ⇒ Object
25 26 27 28 29 |
# File 'lib/integrations/clients/http.rb', line 25 def post(path, = {}, &block) [:max_bytes] ||= default_max_bytes Gitlab::HTTP.post(path, , &block) end |