Classes and Modules
Constants
PARAM_DEPTH_LIMIT | = | 32 |
Public Instance methods
decode(response)
[show source]
# File lib/httpx/transcoder/form.rb 54 def decode(response) 55 content_type = response.content_type.mime_type 56 57 case content_type 58 when "application/x-www-form-urlencoded" 59 Decoder 60 when "multipart/form-data" 61 Multipart::Decoder.new(response) 62 else 63 raise Error, "invalid form mime type (#{content_type})" 64 end 65 end
encode(form)
[show source]
# File lib/httpx/transcoder/form.rb 50 def encode(form) 51 Encoder.new(form) 52 end