Sha256: 52d8f61244abd7a7d976eacf2ee0b83bca928abbcc472973c435a38c078eee88
Contents?: true
Size: 667 Bytes
Versions: 2
Compression:
Stored size: 667 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lhc-10.1.2 | lib/lhc/formats/multipart.rb |
lhc-10.1.1 | lib/lhc/formats/multipart.rb |