Closed paneq closed 12 years ago
Branch: rack-adapter
rack-adapter
Line from : M2R::Adapter::Rack
M2R::Adapter::Rack
rack_input = StringIO.new(request.body)
This could be something like:
rack_input = request.body_io
Request would return StringIO.new(body) for this method.
Request
StringIO.new(body)
But in case of async upload we would extend the request object with a module AsyncUploadRequest returning File or Tempfile instead.
request
AsyncUploadRequest
File
Tempfile
Branch:
rack-adapter
Line from :
M2R::Adapter::Rack
This could be something like:
Request
would returnStringIO.new(body)
for this method.But in case of async upload we would extend the
request
object with a moduleAsyncUploadRequest
returningFile
orTempfile
instead.