Sha256: 052608f75b0ffdaa5345e0faf0e8b0b230d3cd1be649b6638b5519b4b38c00fd
Contents?: true
Size: 971 Bytes
Versions: 25
Compression:
Stored size: 971 Bytes
Contents
# frozen_string_literal: true require_relative 'multipart/version' require_relative 'multipart/file_part' require_relative 'multipart/param_part' require_relative 'multipart/middleware' module Faraday # Main Faraday::Multipart module. module Multipart Faraday::Request.register_middleware(multipart: Faraday::Multipart::Middleware) end # Aliases for Faraday v1, these are all deprecated and will be removed in v2 of this middleware FilePart = Multipart::FilePart ParamPart = Multipart::ParamPart Parts = Multipart::Parts CompositeReadIO = Multipart::CompositeReadIO # 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 UploadIO = if ::Gem::Requirement.new('>= 2.2.0').satisfied_by?(Multipart.multipart_post_version) ::Multipart::Post::UploadIO else ::UploadIO end end
Version data entries
25 entries across 25 versions & 6 rubygems