lib/raisin/middleware.rb in raisin-0.0.5 vs lib/raisin/middleware.rb in raisin-0.1.0

- old
+ new

@@ -1,5 +1,9 @@ module Raisin + # + # Middleware responsable to filter HTTP Accept header + # It stores version and format accepted by the client in the env. + # class Middleware ACCEPT_REGEXP = /application\/vnd\.(?<vendor>[a-z]+)-(?<version>v[0-9]+)\+(?<format>[a-z]+)?/ def initialize(app) @app = app \ No newline at end of file