Compare projects
Project comparisons allow you to view any selection of projects side by side just like they're shown on regular categories or in search results. You can try out an example or start yourself by adding a library to the comparison via the input below. You can also easily share your current comparison with others by sending the URL of the current page.
0.0
# 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
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Activity