Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 566 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 566 Bytes

Build Status

What's Rack::Store

Rack::Store is a Rack middleware what makes the env accessible anywhere while a request.

Usage

# Gemfile
gem 'rack-store', :require => 'rack/store'

# config.ru
use Rack::Store

# In your rack application (e.g. Rails, Sinatra)
Rails.logger.debug "User-Agent: #{Rack::Store.env['HTTP_USER_AGENT']}"

License

Rack::Store is released under the MIT license:

Copyright (c) 2016 Issei Naruta