Class: Umbra::RequestBuilder
- Inherits:
-
Object
- Object
- Umbra::RequestBuilder
- Defined in:
- lib/umbra/request_builder.rb
Constant Summary collapse
- UMBRA_HEADERS =
{ Umbra::HEADER_KEY => Umbra::HEADER_VALUE, 'HTTP_CACHE_CONTROL' => 'no-cache, no-store, private, max-age=0' }.freeze
Class Method Summary collapse
Class Method Details
.call(env) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/umbra/request_builder.rb', line 11 def call(env) Typhoeus::Request.new( base_url(env) + url(env), method: method(env), body: body(env), headers: headers(env) ) end |