https://github.com/eldoy/fuprint
Rack middleware for printing information about the request
https://github.com/eldoy/fuprint
middleware print rack-middleware request ruby
Last synced: 8 days ago
JSON representation
Rack middleware for printing information about the request
- Host: GitHub
- URL: https://github.com/eldoy/fuprint
- Owner: eldoy
- License: mit
- Created: 2017-01-03T22:03:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T12:13:43.000Z (almost 9 years ago)
- Last Synced: 2025-01-19T02:11:22.955Z (over 1 year ago)
- Topics: middleware, print, rack-middleware, request, ruby
- Language: Ruby
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Fuprint request printer middleware
Rack middleware that prints information about your request to console in development. Perfect for Sinatra or Rack apps that don't come with request ouput built in.
### Installation
```ruby
gem install fuprint
```
or add to Gemfile.
### Settings
```ruby
# Print the whole env hash for each request if true
Fuprint.debug = false
# Fuprint only prints in development mode
@mode = ENV['RACK_ENV'] || 'development'
```
### Usage
```ruby
# Require fuprint if you're not using Bundler
require 'fuprint'
# Include as middleware
use Fuprint::Request
```
That's it!
This library is actively maintained by [Fugroup Ltd.](http://www.fugroup.net) We are the creators of [CrowdfundHQ.](https://crowdfundhq.com)
Thanks!
`@authors: Vidar`