Sha256: 9dd08d8ceb0baa9c47b43bf2a79f0355dbb7a3bd2dc86f3c684d8ed6cb8ca9fd
Contents?: true
Size: 457 Bytes
Versions: 87
Compression:
Stored size: 457 Bytes
Contents
#!/usr/bin/env falcon --verbose serve -c # Save this as `config.ru`, make it executable and then run it (or run falcon serve by hand) # Middleware that responds to incoming requests: require 'sinatra/base' class MyApp < Sinatra::Base get "/" do response = Faraday.get 'http://sushi.com/nigiri/sake.json' end end # Build the middleware stack: use MyApp # Then, it will get to Sinatra. run lambda {|env| [404, {}, []]} # Bottom of the stack, give 404.
Version data entries
87 entries across 87 versions & 1 rubygems