module Faraday::Multipart

Main Faraday::Multipart module.

Constants

FilePart

@!method initialize(filename_or_io, content_type, filename = nil, opts = {})

@param filename_or_io [String, IO] Either a String filename to a local
  file or an open IO object.
@param content_type [String] String content type of the file data.
@param filename [String] Optional String filename, usually to add context
  to a given IO object.
@param opts [Hash] Optional Hash of String key/value pairs to describethis
  this uploaded file. Expected Header keys include:
  * Content-Transfer-Encoding - Defaults to "binary"
  * Content-Disposition - Defaults to "form-data"
  * Content-Type - Defaults to the content_type argument.
  * Content-ID - Optional.

@return [Faraday::FilePart]

@!attribute [r] content_type The uploaded binary data’s content type.

@return [String]

@!attribute [r] original_filename The base filename, taken either from the filename_or_io or filename arguments in initialize.

@return [String]

@!attribute [r] opts Extra String key/value pairs to make up the header for this uploaded file.

@return [Hash]

@!attribute [r] io The open IO object for the uploaded file.

@return [IO]

Parts
VERSION