class HTTPX::Plugins::Multipart::FormTranscoder::Encoder

  1. lib/httpx/plugins/multipart.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. bytesize
  2. force_encoding
  3. to_str

Public Class methods

new (form)
[show source]
   # File lib/httpx/plugins/multipart.rb
25 def initialize(form)
26   @raw = HTTP::FormData.create(form)
27 end

Public Instance methods

bytesize ()
[show source]
   # File lib/httpx/plugins/multipart.rb
29 def bytesize
30   @raw.content_length
31 end
force_encoding (*args)
[show source]
   # File lib/httpx/plugins/multipart.rb
33 def force_encoding(*args)
34   @raw.to_s.force_encoding(*args)
35 end
to_str ()
[show source]
   # File lib/httpx/plugins/multipart.rb
37 def to_str
38   @raw.to_s
39 end