Class: HttpClient

Inherits:
Object
  • Object
show all
Defined in:
lib/http_client.rb

Direct Known Subclasses

DefaultHttpClient

Instance Method Summary collapse

Instance Method Details

#get(url, query, headers) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/http_client.rb', line 9

def get(url, query, headers)
  raise NotImplementedError.new("You must implement get method.")
end

#post(url, query, headers, body) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/http_client.rb', line 13

def post(url, query, headers, body)
  raise NotImplementedError.new("You must implement post method.")
end

#put(url, query, headers, body) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/http_client.rb', line 17

def put(url, query, headers, body)
  raise NotImplementedError.new("You must implement put method.")
end

#responseObject

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/http_client.rb', line 5

def response
  raise NotImplementedError.new("You must implement response method.")
end