Module: Faraday

Defined in:
lib/faraday/multipart.rb,
lib/faraday/multipart/version.rb,
lib/faraday/multipart/file_part.rb,
lib/faraday/multipart/middleware.rb,
lib/faraday/multipart/param_part.rb

Defined Under Namespace

Modules: Multipart

Constant Summary collapse

FilePart =

Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware

Multipart::FilePart
ParamPart =
Multipart::ParamPart
Parts =
Multipart::Parts
CompositeReadIO =
Multipart::CompositeReadIO
UploadIO =

multipart-post v2.2.0 introduces a new class hierarchy for classes like Parts and UploadIO For backwards compatibility, detect the gem version and use the right class

if ::Gem::Requirement.new('>= 2.2.0').satisfied_by?(Multipart.multipart_post_version)
  ::Multipart::Post::UploadIO
else
  ::UploadIO
end