Class: Algolia::Transport::EchoRequester

Inherits:
Object
  • Object
show all
Defined in:
lib/algolia/transport/echo_requester.rb

Instance Method Summary collapse

Instance Method Details

#send_request(host, method, path, body, query_params, headers, timeout, connect_timeout) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/algolia/transport/echo_requester.rb', line 4

def send_request(host, method, path, body, query_params, headers, timeout, connect_timeout)
  Http::Response.new(
    host: host,
    status: 200,
    body: body,
    query_params: query_params,
    headers: headers,
    method: method,
    path: path,
    timeout: timeout,
    connect_timeout: connect_timeout
  )
end