Module: HTTPX::Transcoder::Form::Decoder

Defined in:
lib/httpx/transcoder/form.rb

Class Method Summary collapse

Class Method Details

.call(response) ⇒ Object



43
44
45
46
47
# File 'lib/httpx/transcoder/form.rb', line 43

def call(response, *)
  URI.decode_www_form(response.to_s).each_with_object({}) do |(field, value), params|
    HTTPX::Transcoder.normalize_query(params, field, value, PARAM_DEPTH_LIMIT)
  end
end