Method: Landline::DSL::ProbeMethods#form
- Defined in:
- lib/landline/dsl/methods_probe.rb
#form ⇒ Hash{String=>(String,Landline::Util::FormPart)}
Note:
reads request.input - may nullify request.body.
(in Landline::Probe context) Returns formdata
154 155 156 157 158 159 160 161 |
# File 'lib/landline/dsl/methods_probe.rb', line 154 def form _, opts = Landline::Util::ParserCommon.parse_value( request.headers["content-type"] ) Landline::Util::MultipartParser.new( request.input, opts["boundary"] ).to_h end |