diff --git a/README.rdoc b/README.rdoc index 54338ea811..a018d3e01d 100644 --- a/README.rdoc +++ b/README.rdoc @@ -857,14 +857,21 @@ It also take a couple of options: The options are: -* :filename - file name in response, defaults to the real file name. -* :last_modified - value for Last-Modified header, defaults to the - file's mtime. -* :type - content type to use, guessed from the file extension if - missing. -* :disposition - used for Content-Disposition, possible values: +nil+ - (default), :attachement and :inline -* :length - Content-Length header, defaults to file size. +[filename] + file name in response, defaults to the real file name. + +[last_modified] + value for Last-Modified header, defaults to the file's mtime. + +[type] + content type to use, guessed from the file extension if missing. + +[disposition] + used for Content-Disposition, possible values: +nil+ (default), + :attachement and :inline + +[length] + Content-Length header, defaults to file size. If supported by the Rack handler, other means than streaming from the Ruby process will be used. If you use this helper method, Sinatra will automatically