Module: HTTPX::Transcoder::Multipart

Defined in:
lib/httpx/transcoder/multipart.rb,
lib/httpx/transcoder/multipart/part.rb,
lib/httpx/transcoder/multipart/decoder.rb,
lib/httpx/transcoder/multipart/encoder.rb,
lib/httpx/transcoder/multipart/mime_type_detector.rb

Defined Under Namespace

Modules: MimeTypeDetector, Part Classes: Decoder, Encoder, FilePart

Constant Summary collapse

MULTIPART_VALUE_COND =
lambda do |value|
  value.respond_to?(:read) ||
    (value.respond_to?(:to_hash) &&
      value.key?(:body) &&
      (value.key?(:filename) || value.key?(:content_type)))
end