Module: Keiyaku::_Adapter

Included in:
FaradayAdapter, HTTPAdapter, NetHTTPAdapter
Defined in:
sig/keiyaku.rbs

Overview

Anything that can make a request. Pass one as adapter: to put the client on an HTTP stack the application already has. Response header names may be in any case; the client lower-cases them before reading any.

Instance Method Summary collapse

Instance Method Details

#call[Integer, Hash[String, untyped], String?]

Parameters:

  • verb (Symbol)
  • uri (Object)
  • headers (Hash[String, String])
  • body (String, nil)

Returns:

  • ([Integer, Hash[String, untyped], String?])


148
# File 'sig/keiyaku.rbs', line 148

def call: (Symbol verb, untyped uri, Hash[String, String] headers, String? body) -> [Integer, Hash[String, untyped], String?]