issues
search
xentek
/
hyperdrive
hypermedia state machine
https://rubygems.org/gems/hyperdrive
MIT License
5
stars
0
forks
source link
27 before request callback
#28
Closed
xentek
closed
10 years ago
xentek
commented
10 years ago
adds support for a
before
callback, which is automatically fired before matching requests on a resource
a single
before
callback can be applied to multiple request methods (
:get
,
:post
, et al)
before
callbacks take a version, much like
request
handlers do
this branch also fleshes out version'd resource support so that it actually works as intended, including determining the requested version
adds an unrelated change to add an option for forcing ssl (will be used later to configure rack-ssl automatically)
adds specs to many areas of the code that were untested
punted on adding after callback support, for now
refs #27
before
callback, which is automatically fired before matching requests on a resourcebefore
callback can be applied to multiple request methods (:get
,:post
, et al)before
callbacks take a version, much likerequest
handlers dorefs #27