Class: Integrations::Clients::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/integrations/clients/http.rb

Class Method Summary collapse

Class Method Details

.delete(path, options = {}, &block) ⇒ Object



7
8
9
10
11
# File 'lib/integrations/clients/http.rb', line 7

def delete(path, options = {}, &block)
  options[:max_bytes] ||= default_max_bytes

  Gitlab::HTTP.delete(path, options, &block)
end

.get(path, options = {}, &block) ⇒ Object



19
20
21
22
23
# File 'lib/integrations/clients/http.rb', line 19

def get(path, options = {}, &block)
  options[:max_bytes] ||= default_max_bytes

  Gitlab::HTTP.get(path, options, &block)
end

.head(path, options = {}, &block) ⇒ Object



13
14
15
16
17
# File 'lib/integrations/clients/http.rb', line 13

def head(path, options = {}, &block)
  options[:max_bytes] ||= default_max_bytes

  Gitlab::HTTP.head(path, options, &block)
end

.post(path, options = {}, &block) ⇒ Object



25
26
27
28
29
# File 'lib/integrations/clients/http.rb', line 25

def post(path, options = {}, &block)
  options[:max_bytes] ||= default_max_bytes

  Gitlab::HTTP.post(path, options, &block)
end

.put(path, options = {}, &block) ⇒ Object



31
32
33
34
35
# File 'lib/integrations/clients/http.rb', line 31

def put(path, options = {}, &block)
  options[:max_bytes] ||= default_max_bytes

  Gitlab::HTTP.put(path, options, &block)
end

.try_get(path, options = {}, &block) ⇒ Object



37
38
39
40
41
# File 'lib/integrations/clients/http.rb', line 37

def try_get(path, options = {}, &block)
  options[:max_bytes] ||= default_max_bytes

  Gitlab::HTTP.try_get(path, options, &block)
end