No commit activity in last 3 years
No release in over 3 years
Rack middleware for using consistent time in request.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Rack::RequestTime

Rack::RequestTime is a Rack middleware for using consistent time in request.

Usage

Add this line to your application's Gemfile:

gem "rack-request_time"

Add Rack::RequestTime in your application's Rack middleware stack:

# sinatra
use Rack::RequestTime

# rails
config.middleware.use Rack::RequestTime

Write application code using Rack::RequestTime.current instead of Time.current

Author

onk <takafumi.onaka@gmail.com> (@onk)

License

Licensed under the MIT license.