SPEC in rack-1.0.1 vs SPEC in rack-1.1.0

- old
+ new

@@ -50,11 +50,11 @@ the presence or absence of the appropriate HTTP header in the request. In addition to this, the Rack environment must include these Rack-specific variables: -<tt>rack.version</tt>:: The Array [1,0], representing this version of Rack. +<tt>rack.version</tt>:: The Array [1,1], representing this version of Rack. <tt>rack.url_scheme</tt>:: +http+ or +https+, depending on the request URL. <tt>rack.input</tt>:: See below, the input stream. <tt>rack.errors</tt>:: See below, the error stream. <tt>rack.multithread</tt>:: true if the application object may be simultaneously invoked by another thread in the same process, false otherwise. <tt>rack.multiprocess</tt>:: true if an equivalent application object may be simultaneously invoked by another process, false otherwise. @@ -66,9 +66,16 @@ The store must implement: store(key, value) (aliased as []=); fetch(key, default = nil) (aliased as []); delete(key); clear; +<tt>rack.logger</tt>:: A common object interface for logging messages. + The object must implement: + info(message, &block) + debug(message, &block) + warn(message, &block) + error(message, &block) + fatal(message, &block) The server or the application can store their own data in the environment, too. The keys must contain at least one dot, and should be prefixed uniquely. The prefix <tt>rack.</tt> is reserved for use with the Rack core distribution and other accepted specifications and must not be used otherwise.