Sha256: 55c9035db9461c84d726dcf2a9cd8eacf54abd2170896e8e725563e770e6ee94
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
cuba-sendfile ------------- File sending for Cuba. Usage ----- ```ruby require "cuba" require "cuba/send_file" Cuba.plugin(Cuba::SendFile) Cuba.define do on root do send_file("foo.png") end on "/download" do disposition = 'attachment; filename="foo.png"' send_file("foo.png", "Content-Disposition" => disposition) end end ``` Installation ------------ ``` $ gem install cuba-sendfile ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuba-sendfile-0.0.1 | README.md |