rack.rb 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Copyright (C) 2007, 2008, 2009, 2010 Christian Neukirchen <purl.org/net/chneukirchen>
  2. #
  3. # Rack is freely distributable under the terms of an MIT-style license.
  4. # See COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. # The Rack main module, serving as a namespace for all core Rack
  6. # modules and classes.
  7. #
  8. # All modules meant for use in your application are <tt>autoload</tt>ed here,
  9. # so it should be enough just to <tt>require rack.rb</tt> in your code.
  10. module Rack
  11. # The Rack protocol version number implemented.
  12. VERSION = [1,1]
  13. # Return the Rack protocol version as a dotted string.
  14. def self.version
  15. VERSION.join(".")
  16. end
  17. # Return the Rack release as a dotted string.
  18. def self.release
  19. "1.4"
  20. end
  21. autoload :Builder, "rack/builder"
  22. autoload :BodyProxy, "rack/body_proxy"
  23. autoload :Cascade, "rack/cascade"
  24. autoload :Chunked, "rack/chunked"
  25. autoload :CommonLogger, "rack/commonlogger"
  26. autoload :ConditionalGet, "rack/conditionalget"
  27. autoload :Config, "rack/config"
  28. autoload :ContentLength, "rack/content_length"
  29. autoload :ContentType, "rack/content_type"
  30. autoload :ETag, "rack/etag"
  31. autoload :File, "rack/file"
  32. autoload :Deflater, "rack/deflater"
  33. autoload :Directory, "rack/directory"
  34. autoload :ForwardRequest, "rack/recursive"
  35. autoload :Handler, "rack/handler"
  36. autoload :Head, "rack/head"
  37. autoload :Lint, "rack/lint"
  38. autoload :Lock, "rack/lock"
  39. autoload :Logger, "rack/logger"
  40. autoload :MethodOverride, "rack/methodoverride"
  41. autoload :Mime, "rack/mime"
  42. autoload :NullLogger, "rack/nulllogger"
  43. autoload :Recursive, "rack/recursive"
  44. autoload :Reloader, "rack/reloader"
  45. autoload :Runtime, "rack/runtime"
  46. autoload :Sendfile, "rack/sendfile"
  47. autoload :Server, "rack/server"
  48. autoload :ShowExceptions, "rack/showexceptions"
  49. autoload :ShowStatus, "rack/showstatus"
  50. autoload :Static, "rack/static"
  51. autoload :URLMap, "rack/urlmap"
  52. autoload :Utils, "rack/utils"
  53. autoload :Multipart, "rack/multipart"
  54. autoload :MockRequest, "rack/mock"
  55. autoload :MockResponse, "rack/mock"
  56. autoload :Request, "rack/request"
  57. autoload :Response, "rack/response"
  58. module Auth
  59. autoload :Basic, "rack/auth/basic"
  60. autoload :AbstractRequest, "rack/auth/abstract/request"
  61. autoload :AbstractHandler, "rack/auth/abstract/handler"
  62. module Digest
  63. autoload :MD5, "rack/auth/digest/md5"
  64. autoload :Nonce, "rack/auth/digest/nonce"
  65. autoload :Params, "rack/auth/digest/params"
  66. autoload :Request, "rack/auth/digest/request"
  67. end
  68. end
  69. module Session
  70. autoload :Cookie, "rack/session/cookie"
  71. autoload :Pool, "rack/session/pool"
  72. autoload :Memcache, "rack/session/memcache"
  73. end
  74. end