RubyGems Navigation menu

rack-http-pipe 0.0.1

# Rack HTTP Pipe Use to pipe directly a remote HTTP file without buffering it. > /!\ Do not work with WebBrick, tested with puma ## Use case * Given a file named #HASH#.pdf on S3 * You want a clean URL and handling the authentication in front of it ``` GET http:/example.com/download Content-Disposition: attachment;filename=name-fetched-from-db.pdf Content-Length Content-Type etc. ``` ## Usage ```ruby get "/" do http_pipe "http://example.com/iso-ubuntu-1404-64bits", { status: 200, headers: { "Content-Type: application/octet-stream", "Content-Disposition: attachment;filename=ubuntu.iso", } } end ``` See the example directory for an example app using sinatra

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.0.1 - August 05, 2015 (5.0 KB)

Runtime 依赖 (1):

rack ~> 1

业主:

作者:

  • Léo Unbekandt

SHA 256 校验和:

2596c7148c4dd057f6dd96d30e2e0045ab62e1d407ef48ebe80c9bea5d32e1dc

下载总量 3,396

这个版本 3,396

许可:

BSD

需要的 Ruby 版本: >= 0

链接: