class HTTPX::Transcoder::Form::Encoder

  1. lib/httpx/transcoder/form.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. content_type
  2. to_str

Public Class methods

new (form)
[show source]
   # File lib/httpx/transcoder/form.rb
19 def initialize(form)
20   @raw = URI.encode_www_form(form)
21 end

Public Instance methods

content_type ()
[show source]
   # File lib/httpx/transcoder/form.rb
23 def content_type
24   "application/x-www-form-urlencoded"
25 end
to_str ()
[show source]
   # File lib/httpx/transcoder/form.rb
27 def to_str
28   @raw.to_s
29 end