Sha256: c841cbd642da6131986331bf1cc3c10cd9716fa9323947f226784fbf599d7516
Contents?: true
Size: 698 Bytes
Versions: 49
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true module LHC::Formats class Multipart < LHC::Format include LHC::BasicMethodsConcern def self.request(options) options[:format] = new super(options) end def format_options(options) options[:headers] ||= {} no_content_type_header!(options) options[:headers]['Content-Type'] = 'multipart/form-data' options end def as_json(input) parse(input) end def as_open_struct(input) parse(input) end def to_body(input) input end def to_s 'multipart' end def to_sym to_s.to_sym end private def parse(input) input end end end
Version data entries
49 entries across 49 versions & 1 rubygems