diff options
author | James Tucker <jftucker@gmail.com> | 2011-05-22 22:49:10 -0700 |
---|---|---|
committer | James Tucker <jftucker@gmail.com> | 2011-05-23 00:22:24 -0700 |
commit | f70b894d21947e0b2fe8e24ae003ab160daaec6e (patch) | |
tree | d7908f11f032bf60c888f5186b4bfe31c6c042f8 | |
parent | ac2a30c1bd5f770e107539652401c4941176ac4e (diff) | |
download | rack-f70b894d21947e0b2fe8e24ae003ab160daaec6e.tar.gz |
Update SPEC
-rw-r--r-- | SPEC | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ can (and should) use Rack::Lint to enforce it. When you develop middleware, be sure to add a Lint before and after to catch all mistakes. = Rack applications -A Rack application is an Ruby object (not a class) that +A Rack application is a Ruby object (not a class) that responds to +call+. It takes exactly one argument, the *environment* and returns an Array of exactly three values: @@ -106,7 +106,7 @@ The input stream must respond to +gets+, +each+, +read+ and +rewind+. * +gets+ must be called without arguments and return a string, or +nil+ on EOF. * +read+ behaves like IO#read. Its signature is <tt>read([length, [buffer]])</tt>. - If given, +length+ must be an non-negative Integer (>= 0) or +nil+, and +buffer+ must + If given, +length+ must be a non-negative Integer (>= 0) or +nil+, and +buffer+ must be a String and may not be nil. If +length+ is given and not nil, then this method reads at most +length+ bytes from the input stream. If +length+ is not given or nil, then this method reads all data until EOF. |