class HTTPX::Transcoder::Multipart::FilePart

  1. lib/httpx/transcoder/multipart/decoder.rb
Superclass: SimpleDelegator

Methods

Public Class

  1. new

Public Instance

  1. content_type
  2. original_filename

Attributes

Public Class methods

new(filename, content_type)
[show source]
   # File lib/httpx/transcoder/multipart/decoder.rb
12 def initialize(filename, content_type)
13   @original_filename = filename
14   @content_type = content_type
15   @file = Tempfile.new("httpx", encoding: Encoding::BINARY, mode: File::RDWR)
16   super(@file)
17 end