Method: HTTPAdapter#specialize_request
- Defined in:
- lib/httpadapter.rb
#specialize_request(request_ary) ⇒ Array
Converts a tuple to a specific HTTP implementation’s request format.
80 81 82 83 84 85 86 87 88 |
# File 'lib/httpadapter.rb', line 80 def specialize_request(request_ary) request = HTTPAdapter.verified_request(request_ary) if self.respond_to?(:convert_request_from_a) return self.convert_request_from_a(request) else raise TypeError, 'Expected adapter to implement #convert_request_from_a.' end end |