Sha256: 3aef8699f3d5370b6dfb02fe9a49effe0d818f4f7f8171c5ba8d1b94b0463e34

Contents?: true

Size: 464 Bytes

Versions: 20

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require_relative "multipart/encoder"
require_relative "multipart/decoder"
require_relative "multipart/part"
require_relative "multipart/mime_type_detector"

module HTTPX::Transcoder
  module Multipart
    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
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
httpx-1.3.4 lib/httpx/transcoder/multipart.rb
httpx-1.3.3 lib/httpx/transcoder/multipart.rb
httpx-1.3.2 lib/httpx/transcoder/multipart.rb
httpx-1.3.1 lib/httpx/transcoder/multipart.rb
httpx-1.3.0 lib/httpx/transcoder/multipart.rb
httpx-1.2.6 lib/httpx/transcoder/multipart.rb
httpx-1.2.4 lib/httpx/transcoder/multipart.rb
httpx-1.2.3 lib/httpx/transcoder/multipart.rb
httpx-1.2.2 lib/httpx/transcoder/multipart.rb
httpx-1.2.1 lib/httpx/transcoder/multipart.rb
httpx-1.2.0 lib/httpx/transcoder/multipart.rb
httpx-1.1.5 lib/httpx/transcoder/multipart.rb
httpx-1.1.4 lib/httpx/transcoder/multipart.rb
httpx-1.1.3 lib/httpx/transcoder/multipart.rb
httpx-1.1.2 lib/httpx/transcoder/multipart.rb
httpx-1.1.1 lib/httpx/transcoder/multipart.rb
httpx-1.1.0 lib/httpx/transcoder/multipart.rb
httpx-1.0.2 lib/httpx/transcoder/multipart.rb
httpx-1.0.1 lib/httpx/transcoder/multipart.rb
httpx-1.0.0 lib/httpx/transcoder/multipart.rb