class Ingenico::Connect::SDK::Connection
Class used to communicate using the HTTP (or HTTPS) protocol. Performs GET, DELETE, POST and PUT requests given a target uri and request headers. @see Ingenico::Connect::SDK::DefaultImpl::DefaultConnection
Public Instance Methods
Performs a DELETE request to uri using request_headers, and yields the response as the status code, headers and body.
@yield (Integer, Array<Ingenico::Connect::SDK::ResponseHeader>, IO) The status code, headers and body of the response.
# File lib/ingenico/connect/sdk/connection.rb, line 21 def delete(uri, request_headers) raise NotImplementedError end
Performs a GET request to uri using request_headers, and yields the response as the status code, headers and body.
@yield (Integer, Array<Ingenico::Connect::SDK::ResponseHeader>, IO) The status code, headers and body of the response.
# File lib/ingenico/connect/sdk/connection.rb, line 13 def get(uri, request_headers) raise NotImplementedError end
Performs a POST request to uri using request_headers and body, and yields the response as the status code, headers and body.
@yield (Integer, Array<Ingenico::Connect::SDK::ResponseHeader>, IO) The status code, headers and body of the response.
# File lib/ingenico/connect/sdk/connection.rb, line 29 def post(uri, request_headers, body) raise NotImplementedError end
Performs a PUT request to uri using request_headers and body, and yields the response as the status code, headers and body.
@yield (Integer, Array<Ingenico::Connect::SDK::ResponseHeader>, IO) The status code, headers and body of the response.
# File lib/ingenico/connect/sdk/connection.rb, line 37 def put(uri, request_headers, body) raise NotImplementedError end