Sha256: 41ebf7e0df764d2534895ff2c85ec0084cb3719664f61ee909b3654831dfa818

Contents?: true

Size: 297 Bytes

Versions: 17

Compression:

Stored size: 297 Bytes

Contents

module Rack::App::InstanceMethods::Upload

  def serve_file(file_path)
    raw_rack_resp = Rack::App::FileServer.serve_file(request.env, file_path)
    response.status = raw_rack_resp[0]
    response.headers.merge!(raw_rack_resp[1])
    response.body = raw_rack_resp[2]
    return nil
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rack-app-4.0.1 lib/rack/app/instance_methods/upload.rb
rack-app-3.6.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.5.2 lib/rack/app/instance_methods/upload.rb
rack-app-3.5.1 lib/rack/app/instance_methods/upload.rb
rack-app-3.5.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.4.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.3.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.2.1 lib/rack/app/instance_methods/upload.rb
rack-app-3.2.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.1.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.0.0 lib/rack/app/instance_methods/upload.rb
rack-app-3.0.0.delta lib/rack/app/instance_methods/upload.rb
rack-app-3.0.0.gamma lib/rack/app/instance_methods/upload.rb
rack-app-3.0.0.beta lib/rack/app/instance_methods/upload.rb
rack-app-3.0.0.alpha lib/rack/app/instance_methods/upload.rb
rack-app-2.3.1 lib/rack/app/instance_methods/upload.rb
rack-app-2.3.0 lib/rack/app/instance_methods/upload.rb