Skip to content

Commit

Permalink
Doc fix, Request should have been Reponse
Browse files Browse the repository at this point in the history
Thanks, apeiros

darcs-hash:20070324143650-4fc50-d15308b31a88791774bf9b09a268da80a70097ae.gz
  • Loading branch information
leahneukirchen committed Mar 24, 2007
1 parent b96eda0 commit 2800d60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rack/response.rb
Expand Up @@ -2,18 +2,18 @@
require 'rack/utils'

module Rack
# Rack::Request provides a convenient interface to create a Rack
# Rack::Response provides a convenient interface to create a Rack
# response.
#
# It allows setting of headers and cookies, and provides useful
# defaults (a OK response containing HTML).
#
# You can use Request#write to iteratively generate your response,
# but note that this is buffered by Rack::Request until you call
# You can use Response#write to iteratively generate your response,
# but note that this is buffered by Rack::Response until you call
# +finish+. +finish+ however can take a block inside which calls to
# +write+ are syncronous with the Rack response.
#
# Your application's +call+ should end returning Request#finish.
# Your application's +call+ should end returning Response#finish.

class Response
def initialize(body=[], status=200, header={}, &block)
Expand Down

0 comments on commit 2800d60

Please sign in to comment.