webmachine 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (907) hide show
  1. data/LICENSE +16 -0
  2. data/README.md +24 -0
  3. data/doc/Webmachine/Adapter.html +580 -0
  4. data/doc/Webmachine/Adapters.html +10 -9
  5. data/doc/Webmachine/Application.html +225 -72
  6. data/doc/Webmachine/CallableEncoder.html +23 -24
  7. data/doc/Webmachine/ChunkedBody.html +44 -29
  8. data/doc/Webmachine/Decision.html +8 -5
  9. data/doc/Webmachine/Dispatcher.html +103 -61
  10. data/doc/Webmachine/EnumerableEncoder.html +20 -25
  11. data/doc/Webmachine/Error.html +7 -6
  12. data/doc/Webmachine/FiberEncoder.html +16 -29
  13. data/doc/Webmachine/Headers.html +42 -30
  14. data/doc/Webmachine/InvalidResource.html +7 -13
  15. data/doc/Webmachine/MalformedRequest.html +8 -14
  16. data/doc/Webmachine/MediaType.html +153 -109
  17. data/doc/Webmachine/Request.html +844 -103
  18. data/doc/Webmachine/Resource.html +46 -48
  19. data/doc/Webmachine/Response.html +79 -50
  20. data/doc/Webmachine/StreamingEncoder.html +36 -23
  21. data/doc/Webmachine/Translation.html +21 -13
  22. data/doc/Webmachine.html +105 -82
  23. data/doc/_index.html +27 -34
  24. data/doc/class_list.html +1 -1
  25. data/doc/css/style.css +10 -10
  26. data/doc/file.README.html +113 -37
  27. data/doc/frames.html +1 -1
  28. data/doc/index.html +113 -37
  29. data/doc/js/app.js +4 -4
  30. data/doc/js/full_list.js +6 -0
  31. data/doc/method_list.html +269 -189
  32. data/lib/webmachine/adapters/mongrel.rb +5 -4
  33. data/lib/webmachine/decision/flow.rb +1 -1
  34. data/lib/webmachine/dispatcher.rb +1 -1
  35. data/lib/webmachine/request.rb +6 -3
  36. data/lib/webmachine/version.rb +1 -1
  37. data/spec/webmachine/adapters/mongrel_spec.rb +9 -0
  38. data/spec/webmachine/dispatcher_spec.rb +13 -0
  39. data/spec/webmachine/request_spec.rb +14 -9
  40. metadata +68 -992
  41. data/b/autospec +0 -16
  42. data/b/gpgen +0 -16
  43. data/b/guard +0 -16
  44. data/b/htmldiff +0 -16
  45. data/b/ldiff +0 -16
  46. data/b/mongrel_rails +0 -16
  47. data/b/rackup +0 -16
  48. data/b/rake +0 -16
  49. data/b/rake2thor +0 -16
  50. data/b/redcarpet +0 -16
  51. data/b/rspec +0 -16
  52. data/b/thor +0 -16
  53. data/b/yard +0 -16
  54. data/b/yardoc +0 -16
  55. data/b/yri +0 -16
  56. data/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  57. data/doc/Webmachine/Adapters/Mongrel.html +0 -212
  58. data/doc/Webmachine/Adapters/Rack.html +0 -316
  59. data/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  60. data/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  61. data/doc/Webmachine/Adapters/WEBrick.html +0 -202
  62. data/doc/Webmachine/Configuration.html +0 -551
  63. data/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  64. data/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  65. data/doc/Webmachine/Decision/Conneg.html +0 -678
  66. data/doc/Webmachine/Decision/FSM.html +0 -648
  67. data/doc/Webmachine/Decision/Flow.html +0 -3989
  68. data/doc/Webmachine/Decision/Helpers.html +0 -733
  69. data/doc/Webmachine/Dispatcher/Route.html +0 -657
  70. data/doc/Webmachine/Resource/Authentication.html +0 -333
  71. data/doc/Webmachine/Resource/Callbacks.html +0 -3046
  72. data/doc/Webmachine/Resource/Encodings.html +0 -325
  73. data/doc/Webmachine/Trace/Call.html +0 -366
  74. data/doc/Webmachine/Trace/TraceResource.html +0 -627
  75. data/doc/Webmachine/Trace/Wrapper.html +0 -451
  76. data/doc/Webmachine/Trace.html +0 -108
  77. data/doc/top-level-namespace.html +0 -103
  78. data/lib/webmachine/adapter.rbc +0 -486
  79. data/lib/webmachine/adapters/mongrel.rbc +0 -2213
  80. data/lib/webmachine/adapters/rack.rbc +0 -1082
  81. data/lib/webmachine/adapters/webrick.rbc +0 -2217
  82. data/lib/webmachine/adapters.rbc +0 -223
  83. data/lib/webmachine/application.rbc +0 -1143
  84. data/lib/webmachine/chunked_body.rbc +0 -552
  85. data/lib/webmachine/configuration.rbc +0 -570
  86. data/lib/webmachine/decision/conneg.rbc +0 -4428
  87. data/lib/webmachine/decision/flow.rbc +0 -8688
  88. data/lib/webmachine/decision/fsm.rbc +0 -1540
  89. data/lib/webmachine/decision/helpers.rbc +0 -2287
  90. data/lib/webmachine/decision.rbc +0 -194
  91. data/lib/webmachine/dispatcher/route.rbc +0 -1616
  92. data/lib/webmachine/dispatcher.rbc +0 -955
  93. data/lib/webmachine/errors.rbc +0 -625
  94. data/lib/webmachine/fiber18.rbc +0 -1251
  95. data/lib/webmachine/headers.rbc +0 -919
  96. data/lib/webmachine/media_type.rbc +0 -1946
  97. data/lib/webmachine/request.rbc +0 -1949
  98. data/lib/webmachine/resource/authentication.rbc +0 -510
  99. data/lib/webmachine/resource/callbacks.rbc +0 -2602
  100. data/lib/webmachine/resource/encodings.rbc +0 -746
  101. data/lib/webmachine/resource.rbc +0 -511
  102. data/lib/webmachine/response.rbc +0 -602
  103. data/lib/webmachine/streaming.rbc +0 -1024
  104. data/lib/webmachine/translation.rbc +0 -393
  105. data/lib/webmachine/version.rbc +0 -161
  106. data/lib/webmachine.rbc +0 -389
  107. data/pkg/public/map.png +0 -0
  108. data/pkg/public/trace.html.erb +0 -54
  109. data/pkg/public/wmtrace.css +0 -107
  110. data/pkg/public/wmtrace.js +0 -713
  111. data/pkg/tests.org +0 -80
  112. data/pkg/trace/trace_resource.rb +0 -83
  113. data/pkg/trace.rb +0 -40
  114. data/pkg/webmachine-0.1.0/Gemfile +0 -16
  115. data/pkg/webmachine-0.1.0/Guardfile +0 -11
  116. data/pkg/webmachine-0.1.0/README.md +0 -90
  117. data/pkg/webmachine-0.1.0/Rakefile +0 -31
  118. data/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  119. data/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  120. data/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  121. data/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  122. data/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  123. data/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  124. data/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  125. data/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  126. data/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  127. data/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  128. data/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  129. data/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  130. data/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  131. data/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  132. data/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  133. data/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  134. data/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  135. data/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  136. data/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  137. data/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  138. data/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  139. data/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  140. data/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  141. data/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  142. data/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  143. data/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  144. data/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  145. data/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  146. data/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  147. data/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  148. data/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  149. data/pkg/webmachine-0.1.0.gem +0 -0
  150. data/pkg/webmachine-0.2.0/Gemfile +0 -24
  151. data/pkg/webmachine-0.2.0/Guardfile +0 -11
  152. data/pkg/webmachine-0.2.0/README.md +0 -117
  153. data/pkg/webmachine-0.2.0/Rakefile +0 -31
  154. data/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  155. data/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  156. data/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  157. data/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  158. data/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  159. data/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  160. data/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  161. data/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  162. data/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  163. data/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  164. data/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  165. data/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  166. data/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  167. data/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  168. data/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  169. data/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  170. data/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  171. data/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  172. data/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  173. data/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  174. data/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  175. data/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  176. data/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  177. data/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  178. data/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  179. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  180. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  181. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  182. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  183. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  184. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  185. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  186. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  187. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  188. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  189. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  190. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  191. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  192. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  193. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  194. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  195. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  196. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  197. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  198. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  199. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  200. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  201. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  202. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  203. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  204. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  205. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  206. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  207. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  208. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  209. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  210. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  211. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  212. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  213. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  214. data/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  215. data/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  216. data/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  217. data/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  218. data/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  219. data/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  220. data/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  221. data/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  222. data/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  223. data/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  224. data/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  225. data/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  226. data/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  227. data/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  228. data/pkg/webmachine-0.2.0.gem +0 -0
  229. data/pkg/webmachine-0.3.0/Gemfile +0 -28
  230. data/pkg/webmachine-0.3.0/Guardfile +0 -11
  231. data/pkg/webmachine-0.3.0/README.md +0 -169
  232. data/pkg/webmachine-0.3.0/Rakefile +0 -41
  233. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  234. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
  235. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Rack.html +0 -316
  236. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  237. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  238. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
  239. data/pkg/webmachine-0.3.0/doc/Webmachine/Adapters.html +0 -120
  240. data/pkg/webmachine-0.3.0/doc/Webmachine/CallableEncoder.html +0 -326
  241. data/pkg/webmachine-0.3.0/doc/Webmachine/ChunkedBody.html +0 -350
  242. data/pkg/webmachine-0.3.0/doc/Webmachine/Configuration.html +0 -551
  243. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  244. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  245. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg.html +0 -678
  246. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/FSM.html +0 -648
  247. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Flow.html +0 -3989
  248. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Helpers.html +0 -733
  249. data/pkg/webmachine-0.3.0/doc/Webmachine/Decision.html +0 -121
  250. data/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher/Route.html +0 -657
  251. data/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher.html +0 -530
  252. data/pkg/webmachine-0.3.0/doc/Webmachine/EnumerableEncoder.html +0 -276
  253. data/pkg/webmachine-0.3.0/doc/Webmachine/Error.html +0 -129
  254. data/pkg/webmachine-0.3.0/doc/Webmachine/FiberEncoder.html +0 -250
  255. data/pkg/webmachine-0.3.0/doc/Webmachine/Headers.html +0 -475
  256. data/pkg/webmachine-0.3.0/doc/Webmachine/InvalidResource.html +0 -139
  257. data/pkg/webmachine-0.3.0/doc/Webmachine/MalformedRequest.html +0 -141
  258. data/pkg/webmachine-0.3.0/doc/Webmachine/MediaType.html +0 -1406
  259. data/pkg/webmachine-0.3.0/doc/Webmachine/Request.html +0 -1048
  260. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Authentication.html +0 -333
  261. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
  262. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Encodings.html +0 -325
  263. data/pkg/webmachine-0.3.0/doc/Webmachine/Resource.html +0 -457
  264. data/pkg/webmachine-0.3.0/doc/Webmachine/Response.html +0 -880
  265. data/pkg/webmachine-0.3.0/doc/Webmachine/StreamingEncoder.html +0 -465
  266. data/pkg/webmachine-0.3.0/doc/Webmachine/Translation.html +0 -236
  267. data/pkg/webmachine-0.3.0/doc/Webmachine.html +0 -836
  268. data/pkg/webmachine-0.3.0/doc/_index.html +0 -478
  269. data/pkg/webmachine-0.3.0/doc/class_list.html +0 -47
  270. data/pkg/webmachine-0.3.0/doc/css/common.css +0 -1
  271. data/pkg/webmachine-0.3.0/doc/css/full_list.css +0 -55
  272. data/pkg/webmachine-0.3.0/doc/css/style.css +0 -322
  273. data/pkg/webmachine-0.3.0/doc/file.README.html +0 -240
  274. data/pkg/webmachine-0.3.0/doc/file_list.html +0 -49
  275. data/pkg/webmachine-0.3.0/doc/frames.html +0 -13
  276. data/pkg/webmachine-0.3.0/doc/index.html +0 -240
  277. data/pkg/webmachine-0.3.0/doc/js/app.js +0 -205
  278. data/pkg/webmachine-0.3.0/doc/js/full_list.js +0 -167
  279. data/pkg/webmachine-0.3.0/doc/js/jquery.js +0 -16
  280. data/pkg/webmachine-0.3.0/doc/method_list.html +0 -1910
  281. data/pkg/webmachine-0.3.0/doc/top-level-namespace.html +0 -103
  282. data/pkg/webmachine-0.3.0/examples/webrick.rb +0 -19
  283. data/pkg/webmachine-0.3.0/lib/webmachine/adapters/mongrel.rb +0 -80
  284. data/pkg/webmachine-0.3.0/lib/webmachine/adapters/rack.rb +0 -50
  285. data/pkg/webmachine-0.3.0/lib/webmachine/adapters/webrick.rb +0 -85
  286. data/pkg/webmachine-0.3.0/lib/webmachine/adapters.rb +0 -9
  287. data/pkg/webmachine-0.3.0/lib/webmachine/chunked_body.rb +0 -43
  288. data/pkg/webmachine-0.3.0/lib/webmachine/configuration.rb +0 -30
  289. data/pkg/webmachine-0.3.0/lib/webmachine/decision/conneg.rb +0 -240
  290. data/pkg/webmachine-0.3.0/lib/webmachine/decision/flow.rb +0 -506
  291. data/pkg/webmachine-0.3.0/lib/webmachine/decision/fsm.rb +0 -71
  292. data/pkg/webmachine-0.3.0/lib/webmachine/decision/helpers.rb +0 -104
  293. data/pkg/webmachine-0.3.0/lib/webmachine/decision.rb +0 -12
  294. data/pkg/webmachine-0.3.0/lib/webmachine/dispatcher/route.rb +0 -89
  295. data/pkg/webmachine-0.3.0/lib/webmachine/dispatcher.rb +0 -53
  296. data/pkg/webmachine-0.3.0/lib/webmachine/errors.rb +0 -38
  297. data/pkg/webmachine-0.3.0/lib/webmachine/fiber18.rb +0 -88
  298. data/pkg/webmachine-0.3.0/lib/webmachine/headers.rb +0 -40
  299. data/pkg/webmachine-0.3.0/lib/webmachine/locale/en.yml +0 -28
  300. data/pkg/webmachine-0.3.0/lib/webmachine/media_type.rb +0 -120
  301. data/pkg/webmachine-0.3.0/lib/webmachine/request.rb +0 -66
  302. data/pkg/webmachine-0.3.0/lib/webmachine/resource/authentication.rb +0 -35
  303. data/pkg/webmachine-0.3.0/lib/webmachine/resource/callbacks.rb +0 -376
  304. data/pkg/webmachine-0.3.0/lib/webmachine/resource/encodings.rb +0 -36
  305. data/pkg/webmachine-0.3.0/lib/webmachine/resource.rb +0 -49
  306. data/pkg/webmachine-0.3.0/lib/webmachine/response.rb +0 -50
  307. data/pkg/webmachine-0.3.0/lib/webmachine/streaming.rb +0 -63
  308. data/pkg/webmachine-0.3.0/lib/webmachine/translation.rb +0 -18
  309. data/pkg/webmachine-0.3.0/lib/webmachine/version.rb +0 -8
  310. data/pkg/webmachine-0.3.0/lib/webmachine.rb +0 -21
  311. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  312. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  313. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/README.md +0 -90
  314. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  315. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  316. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  317. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  318. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  319. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  320. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  321. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  322. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  323. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  324. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  325. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  326. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  327. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  328. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  329. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  330. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  331. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  332. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  333. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  334. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  335. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  336. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  337. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  338. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  339. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  340. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  341. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  342. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  343. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  344. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  345. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  346. data/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0.gem +0 -0
  347. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Gemfile +0 -24
  348. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Guardfile +0 -11
  349. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/README.md +0 -117
  350. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Rakefile +0 -31
  351. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  352. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  353. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  354. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  355. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  356. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  357. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  358. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  359. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  360. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  361. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  362. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  363. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  364. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  365. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  366. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  367. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  368. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  369. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  370. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  371. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  372. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  373. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  374. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  375. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  376. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  377. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  378. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  379. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  380. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  381. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  382. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  383. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  384. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  385. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  386. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  387. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  388. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  389. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  390. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  391. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  392. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  393. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  394. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  395. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  396. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  397. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  398. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  399. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  400. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  401. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  402. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  403. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  404. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  405. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  406. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  407. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  408. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  409. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  410. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  411. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  412. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  413. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  414. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  415. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  416. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  417. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  418. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  419. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  420. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  421. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  422. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  423. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  424. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  425. data/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0.gem +0 -0
  426. data/pkg/webmachine-0.3.0/spec/spec_helper.rb +0 -13
  427. data/pkg/webmachine-0.3.0/spec/tests.org +0 -80
  428. data/pkg/webmachine-0.3.0/spec/webmachine/adapters/rack_spec.rb +0 -64
  429. data/pkg/webmachine-0.3.0/spec/webmachine/chunked_body_spec.rb +0 -30
  430. data/pkg/webmachine-0.3.0/spec/webmachine/configuration_spec.rb +0 -27
  431. data/pkg/webmachine-0.3.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  432. data/pkg/webmachine-0.3.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  433. data/pkg/webmachine-0.3.0/spec/webmachine/decision/helpers_spec.rb +0 -116
  434. data/pkg/webmachine-0.3.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  435. data/pkg/webmachine-0.3.0/spec/webmachine/dispatcher_spec.rb +0 -47
  436. data/pkg/webmachine-0.3.0/spec/webmachine/errors_spec.rb +0 -13
  437. data/pkg/webmachine-0.3.0/spec/webmachine/headers_spec.rb +0 -20
  438. data/pkg/webmachine-0.3.0/spec/webmachine/media_type_spec.rb +0 -78
  439. data/pkg/webmachine-0.3.0/spec/webmachine/request_spec.rb +0 -29
  440. data/pkg/webmachine-0.3.0/spec/webmachine/resource/authentication_spec.rb +0 -68
  441. data/pkg/webmachine-0.3.0/webmachine.gemspec +0 -50
  442. data/pkg/webmachine-0.3.0.gem +0 -0
  443. data/pkg/webmachine-0.4.0/Gemfile +0 -30
  444. data/pkg/webmachine-0.4.0/Guardfile +0 -11
  445. data/pkg/webmachine-0.4.0/README.md +0 -169
  446. data/pkg/webmachine-0.4.0/Rakefile +0 -41
  447. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  448. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
  449. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/Rack.html +0 -316
  450. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  451. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  452. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
  453. data/pkg/webmachine-0.4.0/doc/Webmachine/Adapters.html +0 -120
  454. data/pkg/webmachine-0.4.0/doc/Webmachine/Application.html +0 -755
  455. data/pkg/webmachine-0.4.0/doc/Webmachine/CallableEncoder.html +0 -326
  456. data/pkg/webmachine-0.4.0/doc/Webmachine/ChunkedBody.html +0 -350
  457. data/pkg/webmachine-0.4.0/doc/Webmachine/Configuration.html +0 -551
  458. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  459. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  460. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Conneg.html +0 -678
  461. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/FSM.html +0 -648
  462. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Flow.html +0 -3989
  463. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision/Helpers.html +0 -733
  464. data/pkg/webmachine-0.4.0/doc/Webmachine/Decision.html +0 -121
  465. data/pkg/webmachine-0.4.0/doc/Webmachine/Dispatcher/Route.html +0 -657
  466. data/pkg/webmachine-0.4.0/doc/Webmachine/Dispatcher.html +0 -530
  467. data/pkg/webmachine-0.4.0/doc/Webmachine/EnumerableEncoder.html +0 -276
  468. data/pkg/webmachine-0.4.0/doc/Webmachine/Error.html +0 -129
  469. data/pkg/webmachine-0.4.0/doc/Webmachine/FiberEncoder.html +0 -250
  470. data/pkg/webmachine-0.4.0/doc/Webmachine/Headers.html +0 -475
  471. data/pkg/webmachine-0.4.0/doc/Webmachine/InvalidResource.html +0 -139
  472. data/pkg/webmachine-0.4.0/doc/Webmachine/MalformedRequest.html +0 -141
  473. data/pkg/webmachine-0.4.0/doc/Webmachine/MediaType.html +0 -1406
  474. data/pkg/webmachine-0.4.0/doc/Webmachine/Request.html +0 -1048
  475. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Authentication.html +0 -333
  476. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
  477. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource/Encodings.html +0 -325
  478. data/pkg/webmachine-0.4.0/doc/Webmachine/Resource.html +0 -457
  479. data/pkg/webmachine-0.4.0/doc/Webmachine/Response.html +0 -880
  480. data/pkg/webmachine-0.4.0/doc/Webmachine/StreamingEncoder.html +0 -465
  481. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/Call.html +0 -366
  482. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/TraceResource.html +0 -627
  483. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace/Wrapper.html +0 -451
  484. data/pkg/webmachine-0.4.0/doc/Webmachine/Trace.html +0 -108
  485. data/pkg/webmachine-0.4.0/doc/Webmachine/Translation.html +0 -236
  486. data/pkg/webmachine-0.4.0/doc/Webmachine.html +0 -836
  487. data/pkg/webmachine-0.4.0/doc/_index.html +0 -478
  488. data/pkg/webmachine-0.4.0/doc/class_list.html +0 -47
  489. data/pkg/webmachine-0.4.0/doc/css/common.css +0 -1
  490. data/pkg/webmachine-0.4.0/doc/css/full_list.css +0 -55
  491. data/pkg/webmachine-0.4.0/doc/css/style.css +0 -322
  492. data/pkg/webmachine-0.4.0/doc/file.README.html +0 -240
  493. data/pkg/webmachine-0.4.0/doc/file_list.html +0 -49
  494. data/pkg/webmachine-0.4.0/doc/frames.html +0 -13
  495. data/pkg/webmachine-0.4.0/doc/index.html +0 -240
  496. data/pkg/webmachine-0.4.0/doc/js/app.js +0 -205
  497. data/pkg/webmachine-0.4.0/doc/js/full_list.js +0 -167
  498. data/pkg/webmachine-0.4.0/doc/js/jquery.js +0 -16
  499. data/pkg/webmachine-0.4.0/doc/method_list.html +0 -1910
  500. data/pkg/webmachine-0.4.0/doc/top-level-namespace.html +0 -103
  501. data/pkg/webmachine-0.4.0/examples/application.rb +0 -35
  502. data/pkg/webmachine-0.4.0/examples/webrick.rb +0 -19
  503. data/pkg/webmachine-0.4.0/lib/webmachine/adapter.rb +0 -36
  504. data/pkg/webmachine-0.4.0/lib/webmachine/adapters/mongrel.rb +0 -86
  505. data/pkg/webmachine-0.4.0/lib/webmachine/adapters/rack.rb +0 -69
  506. data/pkg/webmachine-0.4.0/lib/webmachine/adapters/webrick.rb +0 -89
  507. data/pkg/webmachine-0.4.0/lib/webmachine/adapters.rb +0 -9
  508. data/pkg/webmachine-0.4.0/lib/webmachine/application.rb +0 -108
  509. data/pkg/webmachine-0.4.0/lib/webmachine/chunked_body.rb +0 -43
  510. data/pkg/webmachine-0.4.0/lib/webmachine/configuration.rb +0 -40
  511. data/pkg/webmachine-0.4.0/lib/webmachine/decision/conneg.rb +0 -239
  512. data/pkg/webmachine-0.4.0/lib/webmachine/decision/flow.rb +0 -503
  513. data/pkg/webmachine-0.4.0/lib/webmachine/decision/fsm.rb +0 -70
  514. data/pkg/webmachine-0.4.0/lib/webmachine/decision/helpers.rb +0 -104
  515. data/pkg/webmachine-0.4.0/lib/webmachine/decision.rb +0 -12
  516. data/pkg/webmachine-0.4.0/lib/webmachine/dispatcher/route.rb +0 -126
  517. data/pkg/webmachine-0.4.0/lib/webmachine/dispatcher.rb +0 -61
  518. data/pkg/webmachine-0.4.0/lib/webmachine/errors.rb +0 -38
  519. data/pkg/webmachine-0.4.0/lib/webmachine/fiber18.rb +0 -88
  520. data/pkg/webmachine-0.4.0/lib/webmachine/headers.rb +0 -40
  521. data/pkg/webmachine-0.4.0/lib/webmachine/locale/en.yml +0 -28
  522. data/pkg/webmachine-0.4.0/lib/webmachine/media_type.rb +0 -120
  523. data/pkg/webmachine-0.4.0/lib/webmachine/request.rb +0 -141
  524. data/pkg/webmachine-0.4.0/lib/webmachine/resource/authentication.rb +0 -36
  525. data/pkg/webmachine-0.4.0/lib/webmachine/resource/callbacks.rb +0 -377
  526. data/pkg/webmachine-0.4.0/lib/webmachine/resource/encodings.rb +0 -37
  527. data/pkg/webmachine-0.4.0/lib/webmachine/resource.rb +0 -50
  528. data/pkg/webmachine-0.4.0/lib/webmachine/response.rb +0 -51
  529. data/pkg/webmachine-0.4.0/lib/webmachine/streaming.rb +0 -63
  530. data/pkg/webmachine-0.4.0/lib/webmachine/translation.rb +0 -18
  531. data/pkg/webmachine-0.4.0/lib/webmachine/version.rb +0 -8
  532. data/pkg/webmachine-0.4.0/lib/webmachine/version.rbc +0 -161
  533. data/pkg/webmachine-0.4.0/lib/webmachine.rb +0 -22
  534. data/pkg/webmachine-0.4.0/pkg/public/map.png +0 -0
  535. data/pkg/webmachine-0.4.0/pkg/public/trace.html.erb +0 -54
  536. data/pkg/webmachine-0.4.0/pkg/public/wmtrace.css +0 -107
  537. data/pkg/webmachine-0.4.0/pkg/public/wmtrace.js +0 -713
  538. data/pkg/webmachine-0.4.0/pkg/tests.org +0 -80
  539. data/pkg/webmachine-0.4.0/pkg/trace/trace_resource.rb +0 -83
  540. data/pkg/webmachine-0.4.0/pkg/trace.rb +0 -40
  541. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  542. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  543. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/README.md +0 -90
  544. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  545. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  546. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  547. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  548. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  549. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  550. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  551. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  552. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  553. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  554. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  555. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  556. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  557. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  558. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  559. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  560. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  561. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  562. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  563. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  564. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  565. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  566. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  567. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  568. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  569. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  570. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  571. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  572. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  573. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  574. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  575. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  576. data/pkg/webmachine-0.4.0/pkg/webmachine-0.1.0.gem +0 -0
  577. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Gemfile +0 -24
  578. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Guardfile +0 -11
  579. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/README.md +0 -117
  580. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/Rakefile +0 -31
  581. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  582. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  583. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  584. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  585. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  586. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  587. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  588. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  589. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  590. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  591. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  592. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  593. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  594. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  595. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  596. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  597. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  598. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  599. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  600. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  601. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  602. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  603. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  604. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  605. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  606. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  607. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  608. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  609. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  610. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  611. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  612. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  613. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  614. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  615. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  616. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  617. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  618. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  619. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  620. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  621. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  622. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  623. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  624. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  625. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  626. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  627. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  628. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  629. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  630. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  631. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  632. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  633. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  634. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  635. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  636. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  637. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  638. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  639. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  640. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  641. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  642. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  643. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  644. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  645. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  646. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  647. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  648. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  649. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  650. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  651. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  652. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  653. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  654. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  655. data/pkg/webmachine-0.4.0/pkg/webmachine-0.2.0.gem +0 -0
  656. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Gemfile +0 -28
  657. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Guardfile +0 -11
  658. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/README.md +0 -169
  659. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/Rakefile +0 -41
  660. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel/Handler.html +0 -348
  661. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Mongrel.html +0 -212
  662. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/Rack.html +0 -316
  663. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/RequestBody.html +0 -363
  664. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick/Server.html +0 -310
  665. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters/WEBrick.html +0 -202
  666. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Adapters.html +0 -120
  667. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/CallableEncoder.html +0 -326
  668. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/ChunkedBody.html +0 -350
  669. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Configuration.html +0 -551
  670. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/MediaTypeList.html +0 -262
  671. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg/PriorityList.html +0 -788
  672. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Conneg.html +0 -678
  673. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/FSM.html +0 -648
  674. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Flow.html +0 -3989
  675. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision/Helpers.html +0 -733
  676. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Decision.html +0 -121
  677. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher/Route.html +0 -657
  678. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Dispatcher.html +0 -530
  679. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/EnumerableEncoder.html +0 -276
  680. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Error.html +0 -129
  681. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/FiberEncoder.html +0 -250
  682. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Headers.html +0 -475
  683. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/InvalidResource.html +0 -139
  684. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/MalformedRequest.html +0 -141
  685. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/MediaType.html +0 -1406
  686. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Request.html +0 -1048
  687. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Authentication.html +0 -333
  688. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Callbacks.html +0 -3046
  689. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource/Encodings.html +0 -325
  690. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Resource.html +0 -457
  691. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Response.html +0 -880
  692. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/StreamingEncoder.html +0 -465
  693. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine/Translation.html +0 -236
  694. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/Webmachine.html +0 -836
  695. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/_index.html +0 -478
  696. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/class_list.html +0 -47
  697. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/common.css +0 -1
  698. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/full_list.css +0 -55
  699. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/css/style.css +0 -322
  700. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/file.README.html +0 -240
  701. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/file_list.html +0 -49
  702. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/frames.html +0 -13
  703. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/index.html +0 -240
  704. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/app.js +0 -205
  705. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/full_list.js +0 -167
  706. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/js/jquery.js +0 -16
  707. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/method_list.html +0 -1910
  708. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/doc/top-level-namespace.html +0 -103
  709. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/examples/webrick.rb +0 -19
  710. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/mongrel.rb +0 -80
  711. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/rack.rb +0 -50
  712. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters/webrick.rb +0 -85
  713. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/adapters.rb +0 -9
  714. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/chunked_body.rb +0 -43
  715. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/configuration.rb +0 -30
  716. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/conneg.rb +0 -240
  717. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/flow.rb +0 -506
  718. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/fsm.rb +0 -71
  719. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision/helpers.rb +0 -104
  720. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/decision.rb +0 -12
  721. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/dispatcher/route.rb +0 -89
  722. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/dispatcher.rb +0 -53
  723. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/errors.rb +0 -38
  724. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/fiber18.rb +0 -88
  725. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/headers.rb +0 -40
  726. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/locale/en.yml +0 -28
  727. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/media_type.rb +0 -120
  728. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/request.rb +0 -66
  729. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/authentication.rb +0 -35
  730. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/callbacks.rb +0 -376
  731. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource/encodings.rb +0 -36
  732. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/resource.rb +0 -49
  733. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/response.rb +0 -50
  734. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/streaming.rb +0 -63
  735. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/translation.rb +0 -18
  736. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine/version.rb +0 -8
  737. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/lib/webmachine.rb +0 -21
  738. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  739. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  740. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/README.md +0 -90
  741. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  742. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  743. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  744. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  745. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  746. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  747. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  748. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  749. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  750. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  751. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  752. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  753. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  754. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  755. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  756. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  757. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  758. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  759. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  760. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  761. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  762. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  763. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  764. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  765. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  766. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  767. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  768. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  769. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  770. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  771. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  772. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  773. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.1.0.gem +0 -0
  774. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Gemfile +0 -24
  775. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Guardfile +0 -11
  776. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/README.md +0 -117
  777. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/Rakefile +0 -31
  778. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/examples/webrick.rb +0 -19
  779. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/mongrel.rb +0 -84
  780. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters/webrick.rb +0 -85
  781. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/adapters.rb +0 -9
  782. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/configuration.rb +0 -30
  783. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/conneg.rb +0 -239
  784. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/flow.rb +0 -504
  785. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/fsm.rb +0 -71
  786. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision/helpers.rb +0 -100
  787. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/decision.rb +0 -12
  788. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher/route.rb +0 -85
  789. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/dispatcher.rb +0 -40
  790. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/errors.rb +0 -38
  791. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/headers.rb +0 -40
  792. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/locale/en.yml +0 -28
  793. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/media_type.rb +0 -117
  794. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/request.rb +0 -56
  795. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/callbacks.rb +0 -376
  796. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource/encodings.rb +0 -36
  797. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/resource.rb +0 -48
  798. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/response.rb +0 -49
  799. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/streaming.rb +0 -27
  800. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/translation.rb +0 -11
  801. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine/version.rb +0 -4
  802. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/lib/webmachine.rb +0 -21
  803. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Gemfile +0 -16
  804. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Guardfile +0 -11
  805. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/README.md +0 -90
  806. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/Rakefile +0 -31
  807. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/examples/webrick.rb +0 -19
  808. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters/webrick.rb +0 -74
  809. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/adapters.rb +0 -15
  810. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/conneg.rb +0 -304
  811. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/flow.rb +0 -502
  812. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/fsm.rb +0 -79
  813. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision/helpers.rb +0 -80
  814. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/decision.rb +0 -12
  815. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher/route.rb +0 -85
  816. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/dispatcher.rb +0 -40
  817. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/errors.rb +0 -37
  818. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/headers.rb +0 -16
  819. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/locale/en.yml +0 -28
  820. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/request.rb +0 -56
  821. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/callbacks.rb +0 -362
  822. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource/encodings.rb +0 -36
  823. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/resource.rb +0 -48
  824. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/response.rb +0 -49
  825. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/streaming.rb +0 -27
  826. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/translation.rb +0 -11
  827. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine/version.rb +0 -4
  828. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/lib/webmachine.rb +0 -19
  829. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/spec_helper.rb +0 -13
  830. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/tests.org +0 -57
  831. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/conneg_spec.rb +0 -152
  832. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/decision/flow_spec.rb +0 -1030
  833. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  834. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/dispatcher_spec.rb +0 -34
  835. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/headers_spec.rb +0 -19
  836. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/spec/webmachine/request_spec.rb +0 -24
  837. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0/webmachine.gemspec +0 -44
  838. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/pkg/webmachine-0.1.0.gem +0 -0
  839. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/spec_helper.rb +0 -13
  840. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/tests.org +0 -57
  841. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/configuration_spec.rb +0 -27
  842. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  843. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  844. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/decision/helpers_spec.rb +0 -105
  845. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  846. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/dispatcher_spec.rb +0 -34
  847. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/errors_spec.rb +0 -13
  848. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/headers_spec.rb +0 -20
  849. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/media_type_spec.rb +0 -78
  850. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/spec/webmachine/request_spec.rb +0 -24
  851. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0/webmachine.gemspec +0 -47
  852. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/pkg/webmachine-0.2.0.gem +0 -0
  853. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/spec_helper.rb +0 -13
  854. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/tests.org +0 -80
  855. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/adapters/rack_spec.rb +0 -64
  856. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/chunked_body_spec.rb +0 -30
  857. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/configuration_spec.rb +0 -27
  858. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  859. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  860. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/decision/helpers_spec.rb +0 -116
  861. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/dispatcher/route_spec.rb +0 -109
  862. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/dispatcher_spec.rb +0 -47
  863. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/errors_spec.rb +0 -13
  864. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/headers_spec.rb +0 -20
  865. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/media_type_spec.rb +0 -78
  866. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/request_spec.rb +0 -29
  867. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/spec/webmachine/resource/authentication_spec.rb +0 -68
  868. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0/webmachine.gemspec +0 -50
  869. data/pkg/webmachine-0.4.0/pkg/webmachine-0.3.0.gem +0 -0
  870. data/pkg/webmachine-0.4.0/spec/spec_helper.rb +0 -13
  871. data/pkg/webmachine-0.4.0/spec/webmachine/adapter_spec.rb +0 -40
  872. data/pkg/webmachine-0.4.0/spec/webmachine/adapters/mongrel_spec.rb +0 -22
  873. data/pkg/webmachine-0.4.0/spec/webmachine/adapters/rack_spec.rb +0 -90
  874. data/pkg/webmachine-0.4.0/spec/webmachine/adapters/webrick_spec.rb +0 -18
  875. data/pkg/webmachine-0.4.0/spec/webmachine/application_spec.rb +0 -73
  876. data/pkg/webmachine-0.4.0/spec/webmachine/chunked_body_spec.rb +0 -30
  877. data/pkg/webmachine-0.4.0/spec/webmachine/configuration_spec.rb +0 -27
  878. data/pkg/webmachine-0.4.0/spec/webmachine/decision/conneg_spec.rb +0 -159
  879. data/pkg/webmachine-0.4.0/spec/webmachine/decision/flow_spec.rb +0 -1032
  880. data/pkg/webmachine-0.4.0/spec/webmachine/decision/helpers_spec.rb +0 -116
  881. data/pkg/webmachine-0.4.0/spec/webmachine/dispatcher/route_spec.rb +0 -166
  882. data/pkg/webmachine-0.4.0/spec/webmachine/dispatcher_spec.rb +0 -59
  883. data/pkg/webmachine-0.4.0/spec/webmachine/errors_spec.rb +0 -13
  884. data/pkg/webmachine-0.4.0/spec/webmachine/headers_spec.rb +0 -20
  885. data/pkg/webmachine-0.4.0/spec/webmachine/media_type_spec.rb +0 -78
  886. data/pkg/webmachine-0.4.0/spec/webmachine/request_spec.rb +0 -186
  887. data/pkg/webmachine-0.4.0/spec/webmachine/resource/authentication_spec.rb +0 -68
  888. data/pkg/webmachine-0.4.0/webmachine.gemspec +0 -29
  889. data/pkg/webmachine-0.4.0.gem +0 -0
  890. data/spec/spec_helper.rbc +0 -438
  891. data/spec/webmachine/adapter_spec.rbc +0 -1059
  892. data/spec/webmachine/adapters/mongrel_spec.rbc +0 -748
  893. data/spec/webmachine/adapters/rack_spec.rbc +0 -2405
  894. data/spec/webmachine/adapters/webrick_spec.rbc +0 -653
  895. data/spec/webmachine/application_spec.rbc +0 -1979
  896. data/spec/webmachine/chunked_body_spec.rbc +0 -917
  897. data/spec/webmachine/configuration_spec.rbc +0 -874
  898. data/spec/webmachine/decision/conneg_spec.rbc +0 -4563
  899. data/spec/webmachine/decision/flow_spec.rbc +0 -31810
  900. data/spec/webmachine/decision/helpers_spec.rbc +0 -3742
  901. data/spec/webmachine/dispatcher/route_spec.rbc +0 -6354
  902. data/spec/webmachine/dispatcher_spec.rbc +0 -2143
  903. data/spec/webmachine/errors_spec.rbc +0 -387
  904. data/spec/webmachine/headers_spec.rbc +0 -678
  905. data/spec/webmachine/media_type_spec.rbc +0 -3298
  906. data/spec/webmachine/request_spec.rbc +0 -5948
  907. data/spec/webmachine/resource/authentication_spec.rbc +0 -2395
@@ -1,3989 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Module: Webmachine::Decision::Flow
8
-
9
- &mdash; Documentation by YARD 0.7.3
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- relpath = '../..';
19
- if (relpath != '') relpath += '/';
20
- </script>
21
-
22
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
25
-
26
-
27
- </head>
28
- <body>
29
- <script type="text/javascript" charset="utf-8">
30
- if (window.top.frames.main) document.body.className = 'frames';
31
- </script>
32
-
33
- <div id="header">
34
- <div id="menu">
35
-
36
- <a href="../../_index.html">Index (F)</a> &raquo;
37
- <span class='title'><span class='object_link'><a href="../../Webmachine.html" title="Webmachine (module)">Webmachine</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Decision.html" title="Webmachine::Decision (module)">Decision</a></span></span>
38
- &raquo;
39
- <span class="title">Flow</span>
40
-
41
-
42
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
- </div>
44
-
45
- <div id="search">
46
-
47
- <a id="class_list_link" href="#">Class List</a>
48
-
49
- <a id="method_list_link" href="#">Method List</a>
50
-
51
- <a id="file_list_link" href="#">File List</a>
52
-
53
- </div>
54
- <div class="clear"></div>
55
- </div>
56
-
57
- <iframe id="search_frame"></iframe>
58
-
59
- <div id="content"><h1>Module: Webmachine::Decision::Flow
60
-
61
-
62
-
63
- </h1>
64
-
65
- <dl class="box">
66
-
67
-
68
-
69
-
70
-
71
- <dt class="r1">Includes:</dt>
72
- <dd class="r1"><span class='object_link'><a href="Conneg.html" title="Webmachine::Decision::Conneg (module)">Conneg</a></span>, <span class='object_link'><a href="../Translation.html" title="Webmachine::Translation (module)">Translation</a></span></dd>
73
-
74
-
75
-
76
-
77
- <dt class="r2">Included in:</dt>
78
- <dd class="r2"><span class='object_link'><a href="FSM.html" title="Webmachine::Decision::FSM (class)">FSM</a></span></dd>
79
-
80
-
81
-
82
- <dt class="r1 last">Defined in:</dt>
83
- <dd class="r1 last">lib/webmachine/decision/flow.rb</dd>
84
-
85
- </dl>
86
- <div class="clear"></div>
87
-
88
- <h2>Overview</h2><div class="docstring">
89
- <div class="discussion">
90
- This module encapsulates all of the decisions in Webmachine's
91
- flow-chart. These invoke <span class='object_link'><a href="../Resource/Callbacks.html" title="Webmachine::Resource::Callbacks (module)">Resource::Callbacks</a></span> methods to
92
- determine the appropriate response code, headers, and body for
93
- the response. <br/>This module is included into <span class='object_link'><a href="FSM.html" title="Webmachine::Decision::FSM (class)">FSM</a></span>, which drives the processing
94
- of the chart.
95
-
96
- </div>
97
- </div>
98
- <div class="tags">
99
-
100
-
101
- <h3>See Also:</h3>
102
- <ul class="see">
103
-
104
- <li><a href="http://webmachine.basho.com/images/http-headers-status-v3.png" target="_parent" title="http://webmachine.basho.com/images/http-headers-status-v3.png">http://webmachine.basho.com/images/http-headers-status-v3.png</a></li>
105
-
106
- </ul>
107
-
108
- </div>
109
- <h2>Constant Summary</h2>
110
-
111
- <dl class="constants">
112
-
113
- <dt id="VERSION-constant" class="">VERSION =
114
- <div class="docstring">
115
- <div class="discussion">
116
- Version of the flow diagram
117
-
118
- </div>
119
- </div>
120
- <div class="tags">
121
-
122
-
123
- </div>
124
- </dt>
125
- <dd><pre class="code"><span class='int'>3</span></pre></dd>
126
-
127
- <dt id="START-constant" class="">START =
128
- <div class="docstring">
129
- <div class="discussion">
130
- The first state in flow diagram
131
-
132
- </div>
133
- </div>
134
- <div class="tags">
135
-
136
-
137
- </div>
138
- </dt>
139
- <dd><pre class="code"><span class='symbol'>:b13</span></pre></dd>
140
-
141
- </dl>
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
- <h3 class="inherited">Constants included from <span class='object_link'><a href="Conneg.html" title="Webmachine::Decision::Conneg (module)">Conneg</a></span></h3>
154
- <p class="inherited"><span class='object_link'><a href="Conneg.html#CONNEG_REGEX-constant" title="Webmachine::Decision::Conneg::CONNEG_REGEX (constant)">CONNEG_REGEX</a></span>, <span class='object_link'><a href="Conneg.html#HAS_ENCODING-constant" title="Webmachine::Decision::Conneg::HAS_ENCODING (constant)">HAS_ENCODING</a></span></p>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- <h2>
167
- Instance Method Summary
168
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
169
- </h2>
170
-
171
- <ul class="summary">
172
-
173
- <li class="public ">
174
- <span class="summary_signature">
175
-
176
- <a href="#b10-instance_method" title="#b10 (instance method)">- (Object) <strong>b10</strong> </a>
177
-
178
-
179
-
180
- </span>
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
- <span class="summary_desc"><div class='inline'>Method allowed?.</div></span>
190
-
191
- </li>
192
-
193
-
194
- <li class="public ">
195
- <span class="summary_signature">
196
-
197
- <a href="#b11-instance_method" title="#b11 (instance method)">- (Object) <strong>b11</strong> </a>
198
-
199
-
200
-
201
- </span>
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
- <span class="summary_desc"><div class='inline'>URI too long?.</div></span>
211
-
212
- </li>
213
-
214
-
215
- <li class="public ">
216
- <span class="summary_signature">
217
-
218
- <a href="#b12-instance_method" title="#b12 (instance method)">- (Object) <strong>b12</strong> </a>
219
-
220
-
221
-
222
- </span>
223
-
224
-
225
-
226
-
227
-
228
-
229
-
230
-
231
- <span class="summary_desc"><div class='inline'>Known method?.</div></span>
232
-
233
- </li>
234
-
235
-
236
- <li class="public ">
237
- <span class="summary_signature">
238
-
239
- <a href="#b13-instance_method" title="#b13 (instance method)">- (Object) <strong>b13</strong> </a>
240
-
241
-
242
-
243
- </span>
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
- <span class="summary_desc"><div class='inline'>Service available?.</div></span>
253
-
254
- </li>
255
-
256
-
257
- <li class="public ">
258
- <span class="summary_signature">
259
-
260
- <a href="#b3-instance_method" title="#b3 (instance method)">- (Object) <strong>b3</strong> </a>
261
-
262
-
263
-
264
- </span>
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
- <span class="summary_desc"><div class='inline'>OPTIONS?.</div></span>
274
-
275
- </li>
276
-
277
-
278
- <li class="public ">
279
- <span class="summary_signature">
280
-
281
- <a href="#b4-instance_method" title="#b4 (instance method)">- (Object) <strong>b4</strong> </a>
282
-
283
-
284
-
285
- </span>
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
- <span class="summary_desc"><div class='inline'>Req Entity Too Large?.</div></span>
295
-
296
- </li>
297
-
298
-
299
- <li class="public ">
300
- <span class="summary_signature">
301
-
302
- <a href="#b5-instance_method" title="#b5 (instance method)">- (Object) <strong>b5</strong> </a>
303
-
304
-
305
-
306
- </span>
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
- <span class="summary_desc"><div class='inline'>Known Content-Type?.</div></span>
316
-
317
- </li>
318
-
319
-
320
- <li class="public ">
321
- <span class="summary_signature">
322
-
323
- <a href="#b6-instance_method" title="#b6 (instance method)">- (Object) <strong>b6</strong> </a>
324
-
325
-
326
-
327
- </span>
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
- <span class="summary_desc"><div class='inline'>Okay Content-* Headers?.</div></span>
337
-
338
- </li>
339
-
340
-
341
- <li class="public ">
342
- <span class="summary_signature">
343
-
344
- <a href="#b7-instance_method" title="#b7 (instance method)">- (Object) <strong>b7</strong> </a>
345
-
346
-
347
-
348
- </span>
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
- <span class="summary_desc"><div class='inline'>Forbidden?.</div></span>
358
-
359
- </li>
360
-
361
-
362
- <li class="public ">
363
- <span class="summary_signature">
364
-
365
- <a href="#b8-instance_method" title="#b8 (instance method)">- (Object) <strong>b8</strong> </a>
366
-
367
-
368
-
369
- </span>
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
- <span class="summary_desc"><div class='inline'>Authorized?.</div></span>
379
-
380
- </li>
381
-
382
-
383
- <li class="public ">
384
- <span class="summary_signature">
385
-
386
- <a href="#b9-instance_method" title="#b9 (instance method)">- (Object) <strong>b9</strong> </a>
387
-
388
-
389
-
390
- </span>
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
- <span class="summary_desc"><div class='inline'>Content-MD5 present?.</div></span>
400
-
401
- </li>
402
-
403
-
404
- <li class="public ">
405
- <span class="summary_signature">
406
-
407
- <a href="#b9a-instance_method" title="#b9a (instance method)">- (Object) <strong>b9a</strong> </a>
408
-
409
-
410
-
411
- </span>
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
- <span class="summary_desc"><div class='inline'>Content-MD5 valid?.</div></span>
421
-
422
- </li>
423
-
424
-
425
- <li class="public ">
426
- <span class="summary_signature">
427
-
428
- <a href="#b9b-instance_method" title="#b9b (instance method)">- (Object) <strong>b9b</strong> </a>
429
-
430
-
431
-
432
- </span>
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
- <span class="summary_desc"><div class='inline'>Malformed?.</div></span>
442
-
443
- </li>
444
-
445
-
446
- <li class="public ">
447
- <span class="summary_signature">
448
-
449
- <a href="#c3-instance_method" title="#c3 (instance method)">- (Object) <strong>c3</strong> </a>
450
-
451
-
452
-
453
- </span>
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
- <span class="summary_desc"><div class='inline'>Accept exists?.</div></span>
463
-
464
- </li>
465
-
466
-
467
- <li class="public ">
468
- <span class="summary_signature">
469
-
470
- <a href="#c4-instance_method" title="#c4 (instance method)">- (Object) <strong>c4</strong> </a>
471
-
472
-
473
-
474
- </span>
475
-
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
- <span class="summary_desc"><div class='inline'>Acceptable media type available?.</div></span>
484
-
485
- </li>
486
-
487
-
488
- <li class="public ">
489
- <span class="summary_signature">
490
-
491
- <a href="#d4-instance_method" title="#d4 (instance method)">- (Object) <strong>d4</strong> </a>
492
-
493
-
494
-
495
- </span>
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
- <span class="summary_desc"><div class='inline'>Accept-Language exists?.</div></span>
505
-
506
- </li>
507
-
508
-
509
- <li class="public ">
510
- <span class="summary_signature">
511
-
512
- <a href="#d5-instance_method" title="#d5 (instance method)">- (Object) <strong>d5</strong> </a>
513
-
514
-
515
-
516
- </span>
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
- <span class="summary_desc"><div class='inline'>Acceptable language available?.</div></span>
526
-
527
- </li>
528
-
529
-
530
- <li class="public ">
531
- <span class="summary_signature">
532
-
533
- <a href="#decision_test-instance_method" title="#decision_test (instance method)">- (Object) <strong>decision_test</strong>(test, value, iftrue, iffalse) </a>
534
-
535
-
536
-
537
- </span>
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
- <span class="summary_desc"><div class='inline'>Handles standard decisions where halting is allowed.</div></span>
547
-
548
- </li>
549
-
550
-
551
- <li class="public ">
552
- <span class="summary_signature">
553
-
554
- <a href="#e5-instance_method" title="#e5 (instance method)">- (Object) <strong>e5</strong> </a>
555
-
556
-
557
-
558
- </span>
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
- <span class="summary_desc"><div class='inline'>Accept-Charset exists?.</div></span>
568
-
569
- </li>
570
-
571
-
572
- <li class="public ">
573
- <span class="summary_signature">
574
-
575
- <a href="#e6-instance_method" title="#e6 (instance method)">- (Object) <strong>e6</strong> </a>
576
-
577
-
578
-
579
- </span>
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
- <span class="summary_desc"><div class='inline'>Acceptable Charset available?.</div></span>
589
-
590
- </li>
591
-
592
-
593
- <li class="public ">
594
- <span class="summary_signature">
595
-
596
- <a href="#f6-instance_method" title="#f6 (instance method)">- (Object) <strong>f6</strong> </a>
597
-
598
-
599
-
600
- </span>
601
-
602
-
603
-
604
-
605
-
606
-
607
-
608
-
609
- <span class="summary_desc"><div class='inline'>Accept-Encoding exists?
610
- (also, set content-type header here, now that charset is chosen).</div></span>
611
-
612
- </li>
613
-
614
-
615
- <li class="public ">
616
- <span class="summary_signature">
617
-
618
- <a href="#f7-instance_method" title="#f7 (instance method)">- (Object) <strong>f7</strong> </a>
619
-
620
-
621
-
622
- </span>
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
- <span class="summary_desc"><div class='inline'>Acceptable encoding available?.</div></span>
632
-
633
- </li>
634
-
635
-
636
- <li class="public ">
637
- <span class="summary_signature">
638
-
639
- <a href="#g11-instance_method" title="#g11 (instance method)">- (Object) <strong>g11</strong> </a>
640
-
641
-
642
-
643
- </span>
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
- <span class="summary_desc"><div class='inline'>ETag in If-Match.</div></span>
653
-
654
- </li>
655
-
656
-
657
- <li class="public ">
658
- <span class="summary_signature">
659
-
660
- <a href="#g7-instance_method" title="#g7 (instance method)">- (Object) <strong>g7</strong> </a>
661
-
662
-
663
-
664
- </span>
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
- <span class="summary_desc"><div class='inline'>Resource exists?.</div></span>
674
-
675
- </li>
676
-
677
-
678
- <li class="public ">
679
- <span class="summary_signature">
680
-
681
- <a href="#g8-instance_method" title="#g8 (instance method)">- (Object) <strong>g8</strong> </a>
682
-
683
-
684
-
685
- </span>
686
-
687
-
688
-
689
-
690
-
691
-
692
-
693
-
694
- <span class="summary_desc"><div class='inline'>If-Match exists?.</div></span>
695
-
696
- </li>
697
-
698
-
699
- <li class="public ">
700
- <span class="summary_signature">
701
-
702
- <a href="#g9-instance_method" title="#g9 (instance method)">- (Object) <strong>g9</strong> </a>
703
-
704
-
705
-
706
- </span>
707
-
708
-
709
-
710
-
711
-
712
-
713
-
714
-
715
- <span class="summary_desc"><div class='inline'>If-Match: * exists?.</div></span>
716
-
717
- </li>
718
-
719
-
720
- <li class="public ">
721
- <span class="summary_signature">
722
-
723
- <a href="#h10-instance_method" title="#h10 (instance method)">- (Object) <strong>h10</strong> </a>
724
-
725
-
726
-
727
- </span>
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
- <span class="summary_desc"><div class='inline'>If-Unmodified-Since exists?.</div></span>
737
-
738
- </li>
739
-
740
-
741
- <li class="public ">
742
- <span class="summary_signature">
743
-
744
- <a href="#h11-instance_method" title="#h11 (instance method)">- (Object) <strong>h11</strong> </a>
745
-
746
-
747
-
748
- </span>
749
-
750
-
751
-
752
-
753
-
754
-
755
-
756
-
757
- <span class="summary_desc"><div class='inline'>If-Unmodified-Since is valid date?.</div></span>
758
-
759
- </li>
760
-
761
-
762
- <li class="public ">
763
- <span class="summary_signature">
764
-
765
- <a href="#h12-instance_method" title="#h12 (instance method)">- (Object) <strong>h12</strong> </a>
766
-
767
-
768
-
769
- </span>
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
- <span class="summary_desc"><div class='inline'>Last-Modified &gt; I-UM-S?.</div></span>
779
-
780
- </li>
781
-
782
-
783
- <li class="public ">
784
- <span class="summary_signature">
785
-
786
- <a href="#h7-instance_method" title="#h7 (instance method)">- (Object) <strong>h7</strong> </a>
787
-
788
-
789
-
790
- </span>
791
-
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
- <span class="summary_desc"><div class='inline'>If-Match exists?.</div></span>
800
-
801
- </li>
802
-
803
-
804
- <li class="public ">
805
- <span class="summary_signature">
806
-
807
- <a href="#i12-instance_method" title="#i12 (instance method)">- (Object) <strong>i12</strong> </a>
808
-
809
-
810
-
811
- </span>
812
-
813
-
814
-
815
-
816
-
817
-
818
-
819
-
820
- <span class="summary_desc"><div class='inline'>If-none-match exists?.</div></span>
821
-
822
- </li>
823
-
824
-
825
- <li class="public ">
826
- <span class="summary_signature">
827
-
828
- <a href="#i13-instance_method" title="#i13 (instance method)">- (Object) <strong>i13</strong> </a>
829
-
830
-
831
-
832
- </span>
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
- <span class="summary_desc"><div class='inline'>If-none-match: * exists?.</div></span>
842
-
843
- </li>
844
-
845
-
846
- <li class="public ">
847
- <span class="summary_signature">
848
-
849
- <a href="#i4-instance_method" title="#i4 (instance method)">- (Object) <strong>i4</strong> </a>
850
-
851
-
852
-
853
- </span>
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
-
862
- <span class="summary_desc"><div class='inline'>Moved permanently? (apply PUT to different URI).</div></span>
863
-
864
- </li>
865
-
866
-
867
- <li class="public ">
868
- <span class="summary_signature">
869
-
870
- <a href="#i7-instance_method" title="#i7 (instance method)">- (Object) <strong>i7</strong> </a>
871
-
872
-
873
-
874
- </span>
875
-
876
-
877
-
878
-
879
-
880
-
881
-
882
-
883
- <span class="summary_desc"><div class='inline'>PUT?.</div></span>
884
-
885
- </li>
886
-
887
-
888
- <li class="public ">
889
- <span class="summary_signature">
890
-
891
- <a href="#j18-instance_method" title="#j18 (instance method)">- (Object) <strong>j18</strong> </a>
892
-
893
-
894
-
895
- </span>
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
- <span class="summary_desc"><div class='inline'>GET or HEAD?.</div></span>
905
-
906
- </li>
907
-
908
-
909
- <li class="public ">
910
- <span class="summary_signature">
911
-
912
- <a href="#k13-instance_method" title="#k13 (instance method)">- (Object) <strong>k13</strong> </a>
913
-
914
-
915
-
916
- </span>
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
- <span class="summary_desc"><div class='inline'>Etag in if-none-match?.</div></span>
926
-
927
- </li>
928
-
929
-
930
- <li class="public ">
931
- <span class="summary_signature">
932
-
933
- <a href="#k5-instance_method" title="#k5 (instance method)">- (Object) <strong>k5</strong> </a>
934
-
935
-
936
-
937
- </span>
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
- <span class="summary_desc"><div class='inline'>Moved permanently?.</div></span>
947
-
948
- </li>
949
-
950
-
951
- <li class="public ">
952
- <span class="summary_signature">
953
-
954
- <a href="#k7-instance_method" title="#k7 (instance method)">- (Object) <strong>k7</strong> </a>
955
-
956
-
957
-
958
- </span>
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
-
967
- <span class="summary_desc"><div class='inline'>Previously existed?.</div></span>
968
-
969
- </li>
970
-
971
-
972
- <li class="public ">
973
- <span class="summary_signature">
974
-
975
- <a href="#l13-instance_method" title="#l13 (instance method)">- (Object) <strong>l13</strong> </a>
976
-
977
-
978
-
979
- </span>
980
-
981
-
982
-
983
-
984
-
985
-
986
-
987
-
988
- <span class="summary_desc"><div class='inline'>If-Modified-Since exists?.</div></span>
989
-
990
- </li>
991
-
992
-
993
- <li class="public ">
994
- <span class="summary_signature">
995
-
996
- <a href="#l14-instance_method" title="#l14 (instance method)">- (Object) <strong>l14</strong> </a>
997
-
998
-
999
-
1000
- </span>
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
- <span class="summary_desc"><div class='inline'>IMS is valid date?.</div></span>
1010
-
1011
- </li>
1012
-
1013
-
1014
- <li class="public ">
1015
- <span class="summary_signature">
1016
-
1017
- <a href="#l15-instance_method" title="#l15 (instance method)">- (Object) <strong>l15</strong> </a>
1018
-
1019
-
1020
-
1021
- </span>
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
- <span class="summary_desc"><div class='inline'>IMS &gt; Now?.</div></span>
1031
-
1032
- </li>
1033
-
1034
-
1035
- <li class="public ">
1036
- <span class="summary_signature">
1037
-
1038
- <a href="#l17-instance_method" title="#l17 (instance method)">- (Object) <strong>l17</strong> </a>
1039
-
1040
-
1041
-
1042
- </span>
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
- <span class="summary_desc"><div class='inline'>Last-Modified &gt; IMS?.</div></span>
1052
-
1053
- </li>
1054
-
1055
-
1056
- <li class="public ">
1057
- <span class="summary_signature">
1058
-
1059
- <a href="#l5-instance_method" title="#l5 (instance method)">- (Object) <strong>l5</strong> </a>
1060
-
1061
-
1062
-
1063
- </span>
1064
-
1065
-
1066
-
1067
-
1068
-
1069
-
1070
-
1071
-
1072
- <span class="summary_desc"><div class='inline'>Moved temporarily?.</div></span>
1073
-
1074
- </li>
1075
-
1076
-
1077
- <li class="public ">
1078
- <span class="summary_signature">
1079
-
1080
- <a href="#l7-instance_method" title="#l7 (instance method)">- (Object) <strong>l7</strong> </a>
1081
-
1082
-
1083
-
1084
- </span>
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
-
1093
- <span class="summary_desc"><div class='inline'>POST?.</div></span>
1094
-
1095
- </li>
1096
-
1097
-
1098
- <li class="public ">
1099
- <span class="summary_signature">
1100
-
1101
- <a href="#m16-instance_method" title="#m16 (instance method)">- (Object) <strong>m16</strong> </a>
1102
-
1103
-
1104
-
1105
- </span>
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
- <span class="summary_desc"><div class='inline'>DELETE?.</div></span>
1115
-
1116
- </li>
1117
-
1118
-
1119
- <li class="public ">
1120
- <span class="summary_signature">
1121
-
1122
- <a href="#m20-instance_method" title="#m20 (instance method)">- (Object) <strong>m20</strong> </a>
1123
-
1124
-
1125
-
1126
- </span>
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
- <span class="summary_desc"><div class='inline'>DELETE enacted immediately? (Also where DELETE is forced.).</div></span>
1136
-
1137
- </li>
1138
-
1139
-
1140
- <li class="public ">
1141
- <span class="summary_signature">
1142
-
1143
- <a href="#m20b-instance_method" title="#m20b (instance method)">- (Object) <strong>m20b</strong> </a>
1144
-
1145
-
1146
-
1147
- </span>
1148
-
1149
-
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
- <span class="summary_desc"><div class='inline'>Did the DELETE complete?.</div></span>
1157
-
1158
- </li>
1159
-
1160
-
1161
- <li class="public ">
1162
- <span class="summary_signature">
1163
-
1164
- <a href="#m5-instance_method" title="#m5 (instance method)">- (Object) <strong>m5</strong> </a>
1165
-
1166
-
1167
-
1168
- </span>
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
- <span class="summary_desc"><div class='inline'>POST?.</div></span>
1178
-
1179
- </li>
1180
-
1181
-
1182
- <li class="public ">
1183
- <span class="summary_signature">
1184
-
1185
- <a href="#m7-instance_method" title="#m7 (instance method)">- (Object) <strong>m7</strong> </a>
1186
-
1187
-
1188
-
1189
- </span>
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
- <span class="summary_desc"><div class='inline'>Server allows POST to missing resource?.</div></span>
1199
-
1200
- </li>
1201
-
1202
-
1203
- <li class="public ">
1204
- <span class="summary_signature">
1205
-
1206
- <a href="#n11-instance_method" title="#n11 (instance method)">- (Object) <strong>n11</strong> </a>
1207
-
1208
-
1209
-
1210
- </span>
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
-
1218
-
1219
- <span class="summary_desc"><div class='inline'>Redirect?.</div></span>
1220
-
1221
- </li>
1222
-
1223
-
1224
- <li class="public ">
1225
- <span class="summary_signature">
1226
-
1227
- <a href="#n16-instance_method" title="#n16 (instance method)">- (Object) <strong>n16</strong> </a>
1228
-
1229
-
1230
-
1231
- </span>
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
- <span class="summary_desc"><div class='inline'>POST?.</div></span>
1241
-
1242
- </li>
1243
-
1244
-
1245
- <li class="public ">
1246
- <span class="summary_signature">
1247
-
1248
- <a href="#n5-instance_method" title="#n5 (instance method)">- (Object) <strong>n5</strong> </a>
1249
-
1250
-
1251
-
1252
- </span>
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
- <span class="summary_desc"><div class='inline'>Server allows POST to missing resource?.</div></span>
1262
-
1263
- </li>
1264
-
1265
-
1266
- <li class="public ">
1267
- <span class="summary_signature">
1268
-
1269
- <a href="#o14-instance_method" title="#o14 (instance method)">- (Object) <strong>o14</strong> </a>
1270
-
1271
-
1272
-
1273
- </span>
1274
-
1275
-
1276
-
1277
-
1278
-
1279
-
1280
-
1281
-
1282
- <span class="summary_desc"><div class='inline'>Conflict?.</div></span>
1283
-
1284
- </li>
1285
-
1286
-
1287
- <li class="public ">
1288
- <span class="summary_signature">
1289
-
1290
- <a href="#o16-instance_method" title="#o16 (instance method)">- (Object) <strong>o16</strong> </a>
1291
-
1292
-
1293
-
1294
- </span>
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
- <span class="summary_desc"><div class='inline'>PUT?.</div></span>
1304
-
1305
- </li>
1306
-
1307
-
1308
- <li class="public ">
1309
- <span class="summary_signature">
1310
-
1311
- <a href="#o18-instance_method" title="#o18 (instance method)">- (Object) <strong>o18</strong> </a>
1312
-
1313
-
1314
-
1315
- </span>
1316
-
1317
-
1318
-
1319
-
1320
-
1321
-
1322
-
1323
-
1324
- <span class="summary_desc"><div class='inline'>Multiple representations?
1325
- Also where body generation for GET and HEAD is done.</div></span>
1326
-
1327
- </li>
1328
-
1329
-
1330
- <li class="public ">
1331
- <span class="summary_signature">
1332
-
1333
- <a href="#o18b-instance_method" title="#o18b (instance method)">- (Object) <strong>o18b</strong> </a>
1334
-
1335
-
1336
-
1337
- </span>
1338
-
1339
-
1340
-
1341
-
1342
-
1343
-
1344
-
1345
-
1346
- <span class="summary_desc"><div class='inline'>Multiple choices?.</div></span>
1347
-
1348
- </li>
1349
-
1350
-
1351
- <li class="public ">
1352
- <span class="summary_signature">
1353
-
1354
- <a href="#o20-instance_method" title="#o20 (instance method)">- (Object) <strong>o20</strong> </a>
1355
-
1356
-
1357
-
1358
- </span>
1359
-
1360
-
1361
-
1362
-
1363
-
1364
-
1365
-
1366
-
1367
- <span class="summary_desc"><div class='inline'>Response includes an entity?.</div></span>
1368
-
1369
- </li>
1370
-
1371
-
1372
- <li class="public ">
1373
- <span class="summary_signature">
1374
-
1375
- <a href="#p11-instance_method" title="#p11 (instance method)">- (Object) <strong>p11</strong> </a>
1376
-
1377
-
1378
-
1379
- </span>
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
-
1388
- <span class="summary_desc"><div class='inline'>New resource?.</div></span>
1389
-
1390
- </li>
1391
-
1392
-
1393
- <li class="public ">
1394
- <span class="summary_signature">
1395
-
1396
- <a href="#p3-instance_method" title="#p3 (instance method)">- (Object) <strong>p3</strong> </a>
1397
-
1398
-
1399
-
1400
- </span>
1401
-
1402
-
1403
-
1404
-
1405
-
1406
-
1407
-
1408
-
1409
- <span class="summary_desc"><div class='inline'>Conflict?.</div></span>
1410
-
1411
- </li>
1412
-
1413
-
1414
- </ul>
1415
-
1416
-
1417
-
1418
-
1419
-
1420
-
1421
-
1422
-
1423
-
1424
-
1425
- <h3 class="inherited">Methods included from <span class='object_link'><a href="../Translation.html" title="Webmachine::Translation (module)">Translation</a></span></h3>
1426
- <p class="inherited"><span class='object_link'><a href="../Translation.html#t-instance_method" title="Webmachine::Translation#t (method)">#t</a></span></p>
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Conneg.html" title="Webmachine::Decision::Conneg (module)">Conneg</a></span></h3>
1436
- <p class="inherited"><span class='object_link'><a href="Conneg.html#choose_charset-instance_method" title="Webmachine::Decision::Conneg#choose_charset (method)">#choose_charset</a></span>, <span class='object_link'><a href="Conneg.html#choose_encoding-instance_method" title="Webmachine::Decision::Conneg#choose_encoding (method)">#choose_encoding</a></span>, <span class='object_link'><a href="Conneg.html#choose_language-instance_method" title="Webmachine::Decision::Conneg#choose_language (method)">#choose_language</a></span>, <span class='object_link'><a href="Conneg.html#choose_media_type-instance_method" title="Webmachine::Decision::Conneg#choose_media_type (method)">#choose_media_type</a></span>, <span class='object_link'><a href="Conneg.html#do_choose-instance_method" title="Webmachine::Decision::Conneg#do_choose (method)">#do_choose</a></span>, <span class='object_link'><a href="Conneg.html#language_match-instance_method" title="Webmachine::Decision::Conneg#language_match (method)">#language_match</a></span></p>
1437
-
1438
-
1439
- <div id="instance_method_details" class="method_details_list">
1440
- <h2>Instance Method Details</h2>
1441
-
1442
-
1443
- <div class="method_details first">
1444
- <p class="signature first" id="b10-instance_method">
1445
-
1446
- - (<tt>Object</tt>) <strong>b10</strong>
1447
-
1448
-
1449
-
1450
- </p><div class="docstring">
1451
- <div class="discussion">
1452
- Method allowed?
1453
-
1454
- </div>
1455
- </div>
1456
- <div class="tags">
1457
-
1458
-
1459
- </div><table class="source_code">
1460
- <tr>
1461
- <td>
1462
- <pre class="lines">
1463
-
1464
-
1465
- 57
1466
- 58
1467
- 59
1468
- 60
1469
- 61
1470
- 62
1471
- 63
1472
- 64</pre>
1473
- </td>
1474
- <td>
1475
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 57</span>
1476
-
1477
- <span class='kw'>def</span> <span class='id b10'>b10</span>
1478
- <span class='kw'>if</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id allowed_methods'>allowed_methods</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span><span class='rparen'>)</span>
1479
- <span class='symbol'>:b9</span>
1480
- <span class='kw'>else</span>
1481
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Allow</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id allowed_methods'>allowed_methods</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>, </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1482
- <span class='int'>405</span>
1483
- <span class='kw'>end</span>
1484
- <span class='kw'>end</span></pre>
1485
- </td>
1486
- </tr>
1487
- </table>
1488
- </div>
1489
-
1490
- <div class="method_details ">
1491
- <p class="signature " id="b11-instance_method">
1492
-
1493
- - (<tt>Object</tt>) <strong>b11</strong>
1494
-
1495
-
1496
-
1497
- </p><div class="docstring">
1498
- <div class="discussion">
1499
- URI too long?
1500
-
1501
- </div>
1502
- </div>
1503
- <div class="tags">
1504
-
1505
-
1506
- </div><table class="source_code">
1507
- <tr>
1508
- <td>
1509
- <pre class="lines">
1510
-
1511
-
1512
- 52
1513
- 53
1514
- 54</pre>
1515
- </td>
1516
- <td>
1517
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 52</span>
1518
-
1519
- <span class='kw'>def</span> <span class='id b11'>b11</span>
1520
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id uri_too_long?'>uri_too_long?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id uri'>uri</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='int'>414</span><span class='comma'>,</span> <span class='symbol'>:b10</span><span class='rparen'>)</span>
1521
- <span class='kw'>end</span></pre>
1522
- </td>
1523
- </tr>
1524
- </table>
1525
- </div>
1526
-
1527
- <div class="method_details ">
1528
- <p class="signature " id="b12-instance_method">
1529
-
1530
- - (<tt>Object</tt>) <strong>b12</strong>
1531
-
1532
-
1533
-
1534
- </p><div class="docstring">
1535
- <div class="discussion">
1536
- Known method?
1537
-
1538
- </div>
1539
- </div>
1540
- <div class="tags">
1541
-
1542
-
1543
- </div><table class="source_code">
1544
- <tr>
1545
- <td>
1546
- <pre class="lines">
1547
-
1548
-
1549
- 47
1550
- 48
1551
- 49</pre>
1552
- </td>
1553
- <td>
1554
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 47</span>
1555
-
1556
- <span class='kw'>def</span> <span class='id b12'>b12</span>
1557
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id known_methods'>known_methods</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:b11</span><span class='comma'>,</span> <span class='int'>501</span><span class='rparen'>)</span>
1558
- <span class='kw'>end</span></pre>
1559
- </td>
1560
- </tr>
1561
- </table>
1562
- </div>
1563
-
1564
- <div class="method_details ">
1565
- <p class="signature " id="b13-instance_method">
1566
-
1567
- - (<tt>Object</tt>) <strong>b13</strong>
1568
-
1569
-
1570
-
1571
- </p><div class="docstring">
1572
- <div class="discussion">
1573
- Service available?
1574
-
1575
- </div>
1576
- </div>
1577
- <div class="tags">
1578
-
1579
-
1580
- </div><table class="source_code">
1581
- <tr>
1582
- <td>
1583
- <pre class="lines">
1584
-
1585
-
1586
- 42
1587
- 43
1588
- 44</pre>
1589
- </td>
1590
- <td>
1591
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 42</span>
1592
-
1593
- <span class='kw'>def</span> <span class='id b13'>b13</span>
1594
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id service_available?'>service_available?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:b12</span><span class='comma'>,</span> <span class='int'>503</span><span class='rparen'>)</span>
1595
- <span class='kw'>end</span></pre>
1596
- </td>
1597
- </tr>
1598
- </table>
1599
- </div>
1600
-
1601
- <div class="method_details ">
1602
- <p class="signature " id="b3-instance_method">
1603
-
1604
- - (<tt>Object</tt>) <strong>b3</strong>
1605
-
1606
-
1607
-
1608
- </p><div class="docstring">
1609
- <div class="discussion">
1610
- OPTIONS?
1611
-
1612
- </div>
1613
- </div>
1614
- <div class="tags">
1615
-
1616
-
1617
- </div><table class="source_code">
1618
- <tr>
1619
- <td>
1620
- <pre class="lines">
1621
-
1622
-
1623
- 133
1624
- 134
1625
- 135
1626
- 136
1627
- 137
1628
- 138
1629
- 139
1630
- 140</pre>
1631
- </td>
1632
- <td>
1633
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 133</span>
1634
-
1635
- <span class='kw'>def</span> <span class='id b3'>b3</span>
1636
- <span class='kw'>if</span> <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>OPTIONS</span><span class='tstring_end'>&quot;</span></span>
1637
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='period'>.</span><span class='id merge!'>merge!</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id options'>options</span><span class='rparen'>)</span>
1638
- <span class='int'>200</span>
1639
- <span class='kw'>else</span>
1640
- <span class='symbol'>:c3</span>
1641
- <span class='kw'>end</span>
1642
- <span class='kw'>end</span></pre>
1643
- </td>
1644
- </tr>
1645
- </table>
1646
- </div>
1647
-
1648
- <div class="method_details ">
1649
- <p class="signature " id="b4-instance_method">
1650
-
1651
- - (<tt>Object</tt>) <strong>b4</strong>
1652
-
1653
-
1654
-
1655
- </p><div class="docstring">
1656
- <div class="discussion">
1657
- Req Entity Too Large?
1658
-
1659
- </div>
1660
- </div>
1661
- <div class="tags">
1662
-
1663
-
1664
- </div><table class="source_code">
1665
- <tr>
1666
- <td>
1667
- <pre class="lines">
1668
-
1669
-
1670
- 128
1671
- 129
1672
- 130</pre>
1673
- </td>
1674
- <td>
1675
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 128</span>
1676
-
1677
- <span class='kw'>def</span> <span class='id b4'>b4</span>
1678
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id valid_entity_length?'>valid_entity_length?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id content_length'>content_length</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:b3</span><span class='comma'>,</span> <span class='int'>413</span><span class='rparen'>)</span>
1679
- <span class='kw'>end</span></pre>
1680
- </td>
1681
- </tr>
1682
- </table>
1683
- </div>
1684
-
1685
- <div class="method_details ">
1686
- <p class="signature " id="b5-instance_method">
1687
-
1688
- - (<tt>Object</tt>) <strong>b5</strong>
1689
-
1690
-
1691
-
1692
- </p><div class="docstring">
1693
- <div class="discussion">
1694
- Known Content-Type?
1695
-
1696
- </div>
1697
- </div>
1698
- <div class="tags">
1699
-
1700
-
1701
- </div><table class="source_code">
1702
- <tr>
1703
- <td>
1704
- <pre class="lines">
1705
-
1706
-
1707
- 123
1708
- 124
1709
- 125</pre>
1710
- </td>
1711
- <td>
1712
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 123</span>
1713
-
1714
- <span class='kw'>def</span> <span class='id b5'>b5</span>
1715
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id known_content_type?'>known_content_type?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id content_type'>content_type</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:b4</span><span class='comma'>,</span> <span class='int'>415</span><span class='rparen'>)</span>
1716
- <span class='kw'>end</span></pre>
1717
- </td>
1718
- </tr>
1719
- </table>
1720
- </div>
1721
-
1722
- <div class="method_details ">
1723
- <p class="signature " id="b6-instance_method">
1724
-
1725
- - (<tt>Object</tt>) <strong>b6</strong>
1726
-
1727
-
1728
-
1729
- </p><div class="docstring">
1730
- <div class="discussion">
1731
- Okay Content-* Headers?
1732
-
1733
- </div>
1734
- </div>
1735
- <div class="tags">
1736
-
1737
-
1738
- </div><table class="source_code">
1739
- <tr>
1740
- <td>
1741
- <pre class="lines">
1742
-
1743
-
1744
- 118
1745
- 119
1746
- 120</pre>
1747
- </td>
1748
- <td>
1749
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 118</span>
1750
-
1751
- <span class='kw'>def</span> <span class='id b6'>b6</span>
1752
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id valid_content_headers?'>valid_content_headers?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id headers'>headers</span><span class='period'>.</span><span class='id grep'>grep</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>content-</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:b5</span><span class='comma'>,</span> <span class='int'>501</span><span class='rparen'>)</span>
1753
- <span class='kw'>end</span></pre>
1754
- </td>
1755
- </tr>
1756
- </table>
1757
- </div>
1758
-
1759
- <div class="method_details ">
1760
- <p class="signature " id="b7-instance_method">
1761
-
1762
- - (<tt>Object</tt>) <strong>b7</strong>
1763
-
1764
-
1765
-
1766
- </p><div class="docstring">
1767
- <div class="discussion">
1768
- Forbidden?
1769
-
1770
- </div>
1771
- </div>
1772
- <div class="tags">
1773
-
1774
-
1775
- </div><table class="source_code">
1776
- <tr>
1777
- <td>
1778
- <pre class="lines">
1779
-
1780
-
1781
- 113
1782
- 114
1783
- 115</pre>
1784
- </td>
1785
- <td>
1786
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 113</span>
1787
-
1788
- <span class='kw'>def</span> <span class='id b7'>b7</span>
1789
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id forbidden?'>forbidden?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='int'>403</span><span class='comma'>,</span> <span class='symbol'>:b6</span><span class='rparen'>)</span>
1790
- <span class='kw'>end</span></pre>
1791
- </td>
1792
- </tr>
1793
- </table>
1794
- </div>
1795
-
1796
- <div class="method_details ">
1797
- <p class="signature " id="b8-instance_method">
1798
-
1799
- - (<tt>Object</tt>) <strong>b8</strong>
1800
-
1801
-
1802
-
1803
- </p><div class="docstring">
1804
- <div class="discussion">
1805
- Authorized?
1806
-
1807
- </div>
1808
- </div>
1809
- <div class="tags">
1810
-
1811
-
1812
- </div><table class="source_code">
1813
- <tr>
1814
- <td>
1815
- <pre class="lines">
1816
-
1817
-
1818
- 97
1819
- 98
1820
- 99
1821
- 100
1822
- 101
1823
- 102
1824
- 103
1825
- 104
1826
- 105
1827
- 106
1828
- 107
1829
- 108
1830
- 109
1831
- 110</pre>
1832
- </td>
1833
- <td>
1834
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 97</span>
1835
-
1836
- <span class='kw'>def</span> <span class='id b8'>b8</span>
1837
- <span class='id result'>result</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id is_authorized?'>is_authorized?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id authorization'>authorization</span><span class='rparen'>)</span>
1838
- <span class='kw'>case</span> <span class='id result'>result</span>
1839
- <span class='kw'>when</span> <span class='kw'>true</span>
1840
- <span class='symbol'>:b7</span>
1841
- <span class='kw'>when</span> <span class='const'>Fixnum</span>
1842
- <span class='id result'>result</span>
1843
- <span class='kw'>when</span> <span class='const'>String</span>
1844
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>WWW-Authenticate</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id result'>result</span>
1845
- <span class='int'>401</span>
1846
- <span class='kw'>else</span>
1847
- <span class='int'>401</span>
1848
- <span class='kw'>end</span>
1849
- <span class='kw'>end</span></pre>
1850
- </td>
1851
- </tr>
1852
- </table>
1853
- </div>
1854
-
1855
- <div class="method_details ">
1856
- <p class="signature " id="b9-instance_method">
1857
-
1858
- - (<tt>Object</tt>) <strong>b9</strong>
1859
-
1860
-
1861
-
1862
- </p><div class="docstring">
1863
- <div class="discussion">
1864
- Content-MD5 present?
1865
-
1866
- </div>
1867
- </div>
1868
- <div class="tags">
1869
-
1870
-
1871
- </div><table class="source_code">
1872
- <tr>
1873
- <td>
1874
- <pre class="lines">
1875
-
1876
-
1877
- 67
1878
- 68
1879
- 69</pre>
1880
- </td>
1881
- <td>
1882
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 67</span>
1883
-
1884
- <span class='kw'>def</span> <span class='id b9'>b9</span>
1885
- <span class='id request'>request</span><span class='period'>.</span><span class='id content_md5'>content_md5</span> <span class='op'>?</span> <span class='symbol'>:b9a</span> <span class='op'>:</span> <span class='symbol'>:b9b</span>
1886
- <span class='kw'>end</span></pre>
1887
- </td>
1888
- </tr>
1889
- </table>
1890
- </div>
1891
-
1892
- <div class="method_details ">
1893
- <p class="signature " id="b9a-instance_method">
1894
-
1895
- - (<tt>Object</tt>) <strong>b9a</strong>
1896
-
1897
-
1898
-
1899
- </p><div class="docstring">
1900
- <div class="discussion">
1901
- Content-MD5 valid?
1902
-
1903
- </div>
1904
- </div>
1905
- <div class="tags">
1906
-
1907
-
1908
- </div><table class="source_code">
1909
- <tr>
1910
- <td>
1911
- <pre class="lines">
1912
-
1913
-
1914
- 72
1915
- 73
1916
- 74
1917
- 75
1918
- 76
1919
- 77
1920
- 78
1921
- 79
1922
- 80
1923
- 81
1924
- 82
1925
- 83
1926
- 84
1927
- 85
1928
- 86
1929
- 87
1930
- 88
1931
- 89</pre>
1932
- </td>
1933
- <td>
1934
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 72</span>
1935
-
1936
- <span class='kw'>def</span> <span class='id b9a'>b9a</span>
1937
- <span class='kw'>case</span> <span class='id valid'>valid</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id validate_content_checksum'>validate_content_checksum</span>
1938
- <span class='kw'>when</span> <span class='const'>Fixnum</span>
1939
- <span class='id valid'>valid</span>
1940
- <span class='kw'>when</span> <span class='kw'>true</span>
1941
- <span class='symbol'>:b9b</span>
1942
- <span class='kw'>when</span> <span class='kw'>false</span>
1943
- <span class='id response'>response</span><span class='period'>.</span><span class='id body'>body</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Content-MD5 header does not match request body.</span><span class='tstring_end'>&quot;</span></span>
1944
- <span class='int'>400</span>
1945
- <span class='kw'>else</span> <span class='comment'># not_validated
1946
- </span> <span class='kw'>if</span> <span class='id request'>request</span><span class='period'>.</span><span class='id content_md5'>content_md5</span> <span class='op'>==</span> <span class='const'>Digest</span><span class='op'>::</span><span class='const'>MD5</span><span class='period'>.</span><span class='id hexdigest'>hexdigest</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id body'>body</span><span class='rparen'>)</span>
1947
- <span class='symbol'>:b9b</span>
1948
- <span class='kw'>else</span>
1949
- <span class='id response'>response</span><span class='period'>.</span><span class='id body'>body</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Content-MD5 header does not match request body.</span><span class='tstring_end'>&quot;</span></span>
1950
- <span class='int'>400</span>
1951
- <span class='kw'>end</span>
1952
- <span class='kw'>end</span>
1953
- <span class='kw'>end</span></pre>
1954
- </td>
1955
- </tr>
1956
- </table>
1957
- </div>
1958
-
1959
- <div class="method_details ">
1960
- <p class="signature " id="b9b-instance_method">
1961
-
1962
- - (<tt>Object</tt>) <strong>b9b</strong>
1963
-
1964
-
1965
-
1966
- </p><div class="docstring">
1967
- <div class="discussion">
1968
- Malformed?
1969
-
1970
- </div>
1971
- </div>
1972
- <div class="tags">
1973
-
1974
-
1975
- </div><table class="source_code">
1976
- <tr>
1977
- <td>
1978
- <pre class="lines">
1979
-
1980
-
1981
- 92
1982
- 93
1983
- 94</pre>
1984
- </td>
1985
- <td>
1986
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 92</span>
1987
-
1988
- <span class='kw'>def</span> <span class='id b9b'>b9b</span>
1989
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id malformed_request?'>malformed_request?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='int'>400</span><span class='comma'>,</span> <span class='symbol'>:b8</span><span class='rparen'>)</span>
1990
- <span class='kw'>end</span></pre>
1991
- </td>
1992
- </tr>
1993
- </table>
1994
- </div>
1995
-
1996
- <div class="method_details ">
1997
- <p class="signature " id="c3-instance_method">
1998
-
1999
- - (<tt>Object</tt>) <strong>c3</strong>
2000
-
2001
-
2002
-
2003
- </p><div class="docstring">
2004
- <div class="discussion">
2005
- Accept exists?
2006
-
2007
- </div>
2008
- </div>
2009
- <div class="tags">
2010
-
2011
-
2012
- </div><table class="source_code">
2013
- <tr>
2014
- <td>
2015
- <pre class="lines">
2016
-
2017
-
2018
- 143
2019
- 144
2020
- 145
2021
- 146
2022
- 147
2023
- 148
2024
- 149
2025
- 150</pre>
2026
- </td>
2027
- <td>
2028
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 143</span>
2029
-
2030
- <span class='kw'>def</span> <span class='id c3'>c3</span>
2031
- <span class='kw'>if</span> <span class='op'>!</span><span class='id request'>request</span><span class='period'>.</span><span class='id accept'>accept</span>
2032
- <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>MediaType</span><span class='period'>.</span><span class='id parse'>parse</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id content_types_provided'>content_types_provided</span><span class='period'>.</span><span class='id first'>first</span><span class='period'>.</span><span class='id first'>first</span><span class='rparen'>)</span>
2033
- <span class='symbol'>:d4</span>
2034
- <span class='kw'>else</span>
2035
- <span class='symbol'>:c4</span>
2036
- <span class='kw'>end</span>
2037
- <span class='kw'>end</span></pre>
2038
- </td>
2039
- </tr>
2040
- </table>
2041
- </div>
2042
-
2043
- <div class="method_details ">
2044
- <p class="signature " id="c4-instance_method">
2045
-
2046
- - (<tt>Object</tt>) <strong>c4</strong>
2047
-
2048
-
2049
-
2050
- </p><div class="docstring">
2051
- <div class="discussion">
2052
- Acceptable media type available?
2053
-
2054
- </div>
2055
- </div>
2056
- <div class="tags">
2057
-
2058
-
2059
- </div><table class="source_code">
2060
- <tr>
2061
- <td>
2062
- <pre class="lines">
2063
-
2064
-
2065
- 153
2066
- 154
2067
- 155
2068
- 156
2069
- 157
2070
- 158
2071
- 159
2072
- 160
2073
- 161
2074
- 162</pre>
2075
- </td>
2076
- <td>
2077
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 153</span>
2078
-
2079
- <span class='kw'>def</span> <span class='id c4'>c4</span>
2080
- <span class='id types'>types</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id content_types_provided'>content_types_provided</span><span class='period'>.</span><span class='id map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id pair'>pair</span><span class='op'>|</span> <span class='id pair'>pair</span><span class='period'>.</span><span class='id first'>first</span> <span class='rbrace'>}</span>
2081
- <span class='id chosen_type'>chosen_type</span> <span class='op'>=</span> <span class='id choose_media_type'>choose_media_type</span><span class='lparen'>(</span><span class='id types'>types</span><span class='comma'>,</span> <span class='id request'>request</span><span class='period'>.</span><span class='id accept'>accept</span><span class='rparen'>)</span>
2082
- <span class='kw'>if</span> <span class='op'>!</span><span class='id chosen_type'>chosen_type</span>
2083
- <span class='int'>406</span>
2084
- <span class='kw'>else</span>
2085
- <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id chosen_type'>chosen_type</span>
2086
- <span class='symbol'>:d4</span>
2087
- <span class='kw'>end</span>
2088
- <span class='kw'>end</span></pre>
2089
- </td>
2090
- </tr>
2091
- </table>
2092
- </div>
2093
-
2094
- <div class="method_details ">
2095
- <p class="signature " id="d4-instance_method">
2096
-
2097
- - (<tt>Object</tt>) <strong>d4</strong>
2098
-
2099
-
2100
-
2101
- </p><div class="docstring">
2102
- <div class="discussion">
2103
- Accept-Language exists?
2104
-
2105
- </div>
2106
- </div>
2107
- <div class="tags">
2108
-
2109
-
2110
- </div><table class="source_code">
2111
- <tr>
2112
- <td>
2113
- <pre class="lines">
2114
-
2115
-
2116
- 165
2117
- 166
2118
- 167
2119
- 168
2120
- 169
2121
- 170
2122
- 171
2123
- 172
2124
- 173
2125
- 174
2126
- 175
2127
- 176</pre>
2128
- </td>
2129
- <td>
2130
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 165</span>
2131
-
2132
- <span class='kw'>def</span> <span class='id d4'>d4</span>
2133
- <span class='kw'>if</span> <span class='op'>!</span><span class='id request'>request</span><span class='period'>.</span><span class='id accept_language'>accept_language</span>
2134
- <span class='kw'>if</span> <span class='id language'>language</span> <span class='op'>=</span> <span class='id choose_language'>choose_language</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id languages_provided'>languages_provided</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
2135
- <span class='id resource'>resource</span><span class='period'>.</span><span class='id language_chosen'>language_chosen</span><span class='lparen'>(</span><span class='id language'>language</span><span class='rparen'>)</span>
2136
- <span class='symbol'>:e5</span>
2137
- <span class='kw'>else</span>
2138
- <span class='int'>406</span>
2139
- <span class='kw'>end</span>
2140
- <span class='kw'>else</span>
2141
- <span class='symbol'>:d5</span>
2142
- <span class='kw'>end</span>
2143
- <span class='kw'>end</span></pre>
2144
- </td>
2145
- </tr>
2146
- </table>
2147
- </div>
2148
-
2149
- <div class="method_details ">
2150
- <p class="signature " id="d5-instance_method">
2151
-
2152
- - (<tt>Object</tt>) <strong>d5</strong>
2153
-
2154
-
2155
-
2156
- </p><div class="docstring">
2157
- <div class="discussion">
2158
- Acceptable language available?
2159
-
2160
- </div>
2161
- </div>
2162
- <div class="tags">
2163
-
2164
-
2165
- </div><table class="source_code">
2166
- <tr>
2167
- <td>
2168
- <pre class="lines">
2169
-
2170
-
2171
- 179
2172
- 180
2173
- 181
2174
- 182
2175
- 183
2176
- 184
2177
- 185
2178
- 186</pre>
2179
- </td>
2180
- <td>
2181
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 179</span>
2182
-
2183
- <span class='kw'>def</span> <span class='id d5'>d5</span>
2184
- <span class='kw'>if</span> <span class='id language'>language</span> <span class='op'>=</span> <span class='id choose_language'>choose_language</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id languages_provided'>languages_provided</span><span class='comma'>,</span> <span class='id request'>request</span><span class='period'>.</span><span class='id accept_language'>accept_language</span><span class='rparen'>)</span>
2185
- <span class='id resource'>resource</span><span class='period'>.</span><span class='id language_chosen'>language_chosen</span><span class='lparen'>(</span><span class='id language'>language</span><span class='rparen'>)</span>
2186
- <span class='symbol'>:e5</span>
2187
- <span class='kw'>else</span>
2188
- <span class='int'>406</span>
2189
- <span class='kw'>end</span>
2190
- <span class='kw'>end</span></pre>
2191
- </td>
2192
- </tr>
2193
- </table>
2194
- </div>
2195
-
2196
- <div class="method_details ">
2197
- <p class="signature " id="decision_test-instance_method">
2198
-
2199
- - (<tt>Object</tt>) <strong>decision_test</strong>(test, value, iftrue, iffalse)
2200
-
2201
-
2202
-
2203
- </p><div class="docstring">
2204
- <div class="discussion">
2205
- Handles standard decisions where halting is allowed
2206
-
2207
- </div>
2208
- </div>
2209
- <div class="tags">
2210
-
2211
-
2212
- </div><table class="source_code">
2213
- <tr>
2214
- <td>
2215
- <pre class="lines">
2216
-
2217
-
2218
- 30
2219
- 31
2220
- 32
2221
- 33
2222
- 34
2223
- 35
2224
- 36
2225
- 37
2226
- 38
2227
- 39</pre>
2228
- </td>
2229
- <td>
2230
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 30</span>
2231
-
2232
- <span class='kw'>def</span> <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id test'>test</span><span class='comma'>,</span> <span class='id value'>value</span><span class='comma'>,</span> <span class='id iftrue'>iftrue</span><span class='comma'>,</span> <span class='id iffalse'>iffalse</span><span class='rparen'>)</span>
2233
- <span class='kw'>case</span> <span class='id test'>test</span>
2234
- <span class='kw'>when</span> <span class='id value'>value</span>
2235
- <span class='id iftrue'>iftrue</span>
2236
- <span class='kw'>when</span> <span class='const'>Fixnum</span> <span class='comment'># Allows callbacks to &quot;halt&quot; with a given response code
2237
- </span> <span class='id test'>test</span>
2238
- <span class='kw'>else</span>
2239
- <span class='id iffalse'>iffalse</span>
2240
- <span class='kw'>end</span>
2241
- <span class='kw'>end</span></pre>
2242
- </td>
2243
- </tr>
2244
- </table>
2245
- </div>
2246
-
2247
- <div class="method_details ">
2248
- <p class="signature " id="e5-instance_method">
2249
-
2250
- - (<tt>Object</tt>) <strong>e5</strong>
2251
-
2252
-
2253
-
2254
- </p><div class="docstring">
2255
- <div class="discussion">
2256
- Accept-Charset exists?
2257
-
2258
- </div>
2259
- </div>
2260
- <div class="tags">
2261
-
2262
-
2263
- </div><table class="source_code">
2264
- <tr>
2265
- <td>
2266
- <pre class="lines">
2267
-
2268
-
2269
- 189
2270
- 190
2271
- 191
2272
- 192
2273
- 193
2274
- 194
2275
- 195</pre>
2276
- </td>
2277
- <td>
2278
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 189</span>
2279
-
2280
- <span class='kw'>def</span> <span class='id e5'>e5</span>
2281
- <span class='kw'>if</span> <span class='op'>!</span><span class='id request'>request</span><span class='period'>.</span><span class='id accept_charset'>accept_charset</span>
2282
- <span class='id choose_charset'>choose_charset</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id charsets_provided'>charsets_provided</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='symbol'>:f6</span> <span class='op'>:</span> <span class='int'>406</span>
2283
- <span class='kw'>else</span>
2284
- <span class='symbol'>:e6</span>
2285
- <span class='kw'>end</span>
2286
- <span class='kw'>end</span></pre>
2287
- </td>
2288
- </tr>
2289
- </table>
2290
- </div>
2291
-
2292
- <div class="method_details ">
2293
- <p class="signature " id="e6-instance_method">
2294
-
2295
- - (<tt>Object</tt>) <strong>e6</strong>
2296
-
2297
-
2298
-
2299
- </p><div class="docstring">
2300
- <div class="discussion">
2301
- Acceptable Charset available?
2302
-
2303
- </div>
2304
- </div>
2305
- <div class="tags">
2306
-
2307
-
2308
- </div><table class="source_code">
2309
- <tr>
2310
- <td>
2311
- <pre class="lines">
2312
-
2313
-
2314
- 198
2315
- 199
2316
- 200</pre>
2317
- </td>
2318
- <td>
2319
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 198</span>
2320
-
2321
- <span class='kw'>def</span> <span class='id e6'>e6</span>
2322
- <span class='id choose_charset'>choose_charset</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id charsets_provided'>charsets_provided</span><span class='comma'>,</span> <span class='id request'>request</span><span class='period'>.</span><span class='id accept_charset'>accept_charset</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='symbol'>:f6</span> <span class='op'>:</span> <span class='int'>406</span>
2323
- <span class='kw'>end</span></pre>
2324
- </td>
2325
- </tr>
2326
- </table>
2327
- </div>
2328
-
2329
- <div class="method_details ">
2330
- <p class="signature " id="f6-instance_method">
2331
-
2332
- - (<tt>Object</tt>) <strong>f6</strong>
2333
-
2334
-
2335
-
2336
- </p><div class="docstring">
2337
- <div class="discussion">
2338
- Accept-Encoding exists?
2339
- (also, set content-type header here, now that charset is chosen)
2340
-
2341
- </div>
2342
- </div>
2343
- <div class="tags">
2344
-
2345
-
2346
- </div><table class="source_code">
2347
- <tr>
2348
- <td>
2349
- <pre class="lines">
2350
-
2351
-
2352
- 204
2353
- 205
2354
- 206
2355
- 207
2356
- 208
2357
- 209
2358
- 210
2359
- 211
2360
- 212
2361
- 213
2362
- 214
2363
- 215</pre>
2364
- </td>
2365
- <td>
2366
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 204</span>
2367
-
2368
- <span class='kw'>def</span> <span class='id f6'>f6</span>
2369
- <span class='id chosen_type'>chosen_type</span> <span class='op'>=</span> <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
2370
- <span class='kw'>if</span> <span class='id chosen_charset'>chosen_charset</span> <span class='op'>=</span> <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Charset</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
2371
- <span class='id chosen_type'>chosen_type</span><span class='period'>.</span><span class='id params'>params</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>charset</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id chosen_charset'>chosen_charset</span>
2372
- <span class='kw'>end</span>
2373
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id chosen_type'>chosen_type</span><span class='period'>.</span><span class='id to_s'>to_s</span>
2374
- <span class='kw'>if</span> <span class='op'>!</span><span class='id request'>request</span><span class='period'>.</span><span class='id accept_encoding'>accept_encoding</span>
2375
- <span class='id choose_encoding'>choose_encoding</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id encodings_provided'>encodings_provided</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>identity;q=1.0,*;q=0.5</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='symbol'>:g7</span> <span class='op'>:</span> <span class='int'>406</span>
2376
- <span class='kw'>else</span>
2377
- <span class='symbol'>:f7</span>
2378
- <span class='kw'>end</span>
2379
- <span class='kw'>end</span></pre>
2380
- </td>
2381
- </tr>
2382
- </table>
2383
- </div>
2384
-
2385
- <div class="method_details ">
2386
- <p class="signature " id="f7-instance_method">
2387
-
2388
- - (<tt>Object</tt>) <strong>f7</strong>
2389
-
2390
-
2391
-
2392
- </p><div class="docstring">
2393
- <div class="discussion">
2394
- Acceptable encoding available?
2395
-
2396
- </div>
2397
- </div>
2398
- <div class="tags">
2399
-
2400
-
2401
- </div><table class="source_code">
2402
- <tr>
2403
- <td>
2404
- <pre class="lines">
2405
-
2406
-
2407
- 218
2408
- 219
2409
- 220</pre>
2410
- </td>
2411
- <td>
2412
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 218</span>
2413
-
2414
- <span class='kw'>def</span> <span class='id f7'>f7</span>
2415
- <span class='id choose_encoding'>choose_encoding</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id encodings_provided'>encodings_provided</span><span class='comma'>,</span> <span class='id request'>request</span><span class='period'>.</span><span class='id accept_encoding'>accept_encoding</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='symbol'>:g7</span> <span class='op'>:</span> <span class='int'>406</span>
2416
- <span class='kw'>end</span></pre>
2417
- </td>
2418
- </tr>
2419
- </table>
2420
- </div>
2421
-
2422
- <div class="method_details ">
2423
- <p class="signature " id="g11-instance_method">
2424
-
2425
- - (<tt>Object</tt>) <strong>g11</strong>
2426
-
2427
-
2428
-
2429
- </p><div class="docstring">
2430
- <div class="discussion">
2431
- ETag in If-Match
2432
-
2433
- </div>
2434
- </div>
2435
- <div class="tags">
2436
-
2437
-
2438
- </div><table class="source_code">
2439
- <tr>
2440
- <td>
2441
- <pre class="lines">
2442
-
2443
-
2444
- 240
2445
- 241
2446
- 242
2447
- 243</pre>
2448
- </td>
2449
- <td>
2450
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 240</span>
2451
-
2452
- <span class='kw'>def</span> <span class='id g11'>g11</span>
2453
- <span class='id request_etags'>request_etags</span> <span class='op'>=</span> <span class='id request'>request</span><span class='period'>.</span><span class='id if_match'>if_match</span><span class='period'>.</span><span class='id split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s*,\s*</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id etag'>etag</span><span class='op'>|</span> <span class='id unquote_header'>unquote_header</span><span class='lparen'>(</span><span class='id etag'>etag</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
2454
- <span class='id request_etags'>request_etags</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id generate_etag'>generate_etag</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='symbol'>:h10</span> <span class='op'>:</span> <span class='int'>412</span>
2455
- <span class='kw'>end</span></pre>
2456
- </td>
2457
- </tr>
2458
- </table>
2459
- </div>
2460
-
2461
- <div class="method_details ">
2462
- <p class="signature " id="g7-instance_method">
2463
-
2464
- - (<tt>Object</tt>) <strong>g7</strong>
2465
-
2466
-
2467
-
2468
- </p><div class="docstring">
2469
- <div class="discussion">
2470
- Resource exists?
2471
-
2472
- </div>
2473
- </div>
2474
- <div class="tags">
2475
-
2476
-
2477
- </div><table class="source_code">
2478
- <tr>
2479
- <td>
2480
- <pre class="lines">
2481
-
2482
-
2483
- 223
2484
- 224
2485
- 225
2486
- 226
2487
- 227</pre>
2488
- </td>
2489
- <td>
2490
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 223</span>
2491
-
2492
- <span class='kw'>def</span> <span class='id g7'>g7</span>
2493
- <span class='comment'># This is the first place after all conneg, so set Vary here
2494
- </span> <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Vary</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id variances'>variances</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>, </span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id variances'>variances</span><span class='period'>.</span><span class='id any?'>any?</span>
2495
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id resource_exists?'>resource_exists?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:g8</span><span class='comma'>,</span> <span class='symbol'>:h7</span><span class='rparen'>)</span>
2496
- <span class='kw'>end</span></pre>
2497
- </td>
2498
- </tr>
2499
- </table>
2500
- </div>
2501
-
2502
- <div class="method_details ">
2503
- <p class="signature " id="g8-instance_method">
2504
-
2505
- - (<tt>Object</tt>) <strong>g8</strong>
2506
-
2507
-
2508
-
2509
- </p><div class="docstring">
2510
- <div class="discussion">
2511
- If-Match exists?
2512
-
2513
- </div>
2514
- </div>
2515
- <div class="tags">
2516
-
2517
-
2518
- </div><table class="source_code">
2519
- <tr>
2520
- <td>
2521
- <pre class="lines">
2522
-
2523
-
2524
- 230
2525
- 231
2526
- 232</pre>
2527
- </td>
2528
- <td>
2529
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 230</span>
2530
-
2531
- <span class='kw'>def</span> <span class='id g8'>g8</span>
2532
- <span class='id request'>request</span><span class='period'>.</span><span class='id if_match'>if_match</span> <span class='op'>?</span> <span class='symbol'>:g9</span> <span class='op'>:</span> <span class='symbol'>:h10</span>
2533
- <span class='kw'>end</span></pre>
2534
- </td>
2535
- </tr>
2536
- </table>
2537
- </div>
2538
-
2539
- <div class="method_details ">
2540
- <p class="signature " id="g9-instance_method">
2541
-
2542
- - (<tt>Object</tt>) <strong>g9</strong>
2543
-
2544
-
2545
-
2546
- </p><div class="docstring">
2547
- <div class="discussion">
2548
- If-Match: * exists?
2549
-
2550
- </div>
2551
- </div>
2552
- <div class="tags">
2553
-
2554
-
2555
- </div><table class="source_code">
2556
- <tr>
2557
- <td>
2558
- <pre class="lines">
2559
-
2560
-
2561
- 235
2562
- 236
2563
- 237</pre>
2564
- </td>
2565
- <td>
2566
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 235</span>
2567
-
2568
- <span class='kw'>def</span> <span class='id g9'>g9</span>
2569
- <span class='id request'>request</span><span class='period'>.</span><span class='id if_match'>if_match</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:h10</span> <span class='op'>:</span> <span class='symbol'>:g11</span>
2570
- <span class='kw'>end</span></pre>
2571
- </td>
2572
- </tr>
2573
- </table>
2574
- </div>
2575
-
2576
- <div class="method_details ">
2577
- <p class="signature " id="h10-instance_method">
2578
-
2579
- - (<tt>Object</tt>) <strong>h10</strong>
2580
-
2581
-
2582
-
2583
- </p><div class="docstring">
2584
- <div class="discussion">
2585
- If-Unmodified-Since exists?
2586
-
2587
- </div>
2588
- </div>
2589
- <div class="tags">
2590
-
2591
-
2592
- </div><table class="source_code">
2593
- <tr>
2594
- <td>
2595
- <pre class="lines">
2596
-
2597
-
2598
- 251
2599
- 252
2600
- 253</pre>
2601
- </td>
2602
- <td>
2603
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 251</span>
2604
-
2605
- <span class='kw'>def</span> <span class='id h10'>h10</span>
2606
- <span class='id request'>request</span><span class='period'>.</span><span class='id if_unmodified_since'>if_unmodified_since</span> <span class='op'>?</span> <span class='symbol'>:h11</span> <span class='op'>:</span> <span class='symbol'>:i12</span>
2607
- <span class='kw'>end</span></pre>
2608
- </td>
2609
- </tr>
2610
- </table>
2611
- </div>
2612
-
2613
- <div class="method_details ">
2614
- <p class="signature " id="h11-instance_method">
2615
-
2616
- - (<tt>Object</tt>) <strong>h11</strong>
2617
-
2618
-
2619
-
2620
- </p><div class="docstring">
2621
- <div class="discussion">
2622
- If-Unmodified-Since is valid date?
2623
-
2624
- </div>
2625
- </div>
2626
- <div class="tags">
2627
-
2628
-
2629
- </div><table class="source_code">
2630
- <tr>
2631
- <td>
2632
- <pre class="lines">
2633
-
2634
-
2635
- 256
2636
- 257
2637
- 258
2638
- 259
2639
- 260
2640
- 261
2641
- 262
2642
- 263</pre>
2643
- </td>
2644
- <td>
2645
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 256</span>
2646
-
2647
- <span class='kw'>def</span> <span class='id h11'>h11</span>
2648
- <span class='id date'>date</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id httpdate'>httpdate</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id if_unmodified_since'>if_unmodified_since</span><span class='rparen'>)</span>
2649
- <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>If-Unmodified-Since</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id date'>date</span>
2650
- <span class='kw'>rescue</span> <span class='const'>ArgumentError</span>
2651
- <span class='symbol'>:i12</span>
2652
- <span class='kw'>else</span>
2653
- <span class='symbol'>:h12</span>
2654
- <span class='kw'>end</span></pre>
2655
- </td>
2656
- </tr>
2657
- </table>
2658
- </div>
2659
-
2660
- <div class="method_details ">
2661
- <p class="signature " id="h12-instance_method">
2662
-
2663
- - (<tt>Object</tt>) <strong>h12</strong>
2664
-
2665
-
2666
-
2667
- </p><div class="docstring">
2668
- <div class="discussion">
2669
- Last-Modified &gt; I-UM-S?
2670
-
2671
- </div>
2672
- </div>
2673
- <div class="tags">
2674
-
2675
-
2676
- </div><table class="source_code">
2677
- <tr>
2678
- <td>
2679
- <pre class="lines">
2680
-
2681
-
2682
- 266
2683
- 267
2684
- 268</pre>
2685
- </td>
2686
- <td>
2687
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 266</span>
2688
-
2689
- <span class='kw'>def</span> <span class='id h12'>h12</span>
2690
- <span class='id resource'>resource</span><span class='period'>.</span><span class='id last_modified'>last_modified</span> <span class='op'>&gt;</span> <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>If-Unmodified-Since</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>?</span> <span class='int'>412</span> <span class='op'>:</span> <span class='symbol'>:i12</span>
2691
- <span class='kw'>end</span></pre>
2692
- </td>
2693
- </tr>
2694
- </table>
2695
- </div>
2696
-
2697
- <div class="method_details ">
2698
- <p class="signature " id="h7-instance_method">
2699
-
2700
- - (<tt>Object</tt>) <strong>h7</strong>
2701
-
2702
-
2703
-
2704
- </p><div class="docstring">
2705
- <div class="discussion">
2706
- If-Match exists?
2707
-
2708
- </div>
2709
- </div>
2710
- <div class="tags">
2711
-
2712
-
2713
- </div><table class="source_code">
2714
- <tr>
2715
- <td>
2716
- <pre class="lines">
2717
-
2718
-
2719
- 246
2720
- 247
2721
- 248</pre>
2722
- </td>
2723
- <td>
2724
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 246</span>
2725
-
2726
- <span class='kw'>def</span> <span class='id h7'>h7</span>
2727
- <span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id if_match'>if_match</span> <span class='op'>&amp;&amp;</span> <span class='id unquote_header'>unquote_header</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id if_match'>if_match</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>412</span> <span class='op'>:</span> <span class='symbol'>:i7</span>
2728
- <span class='kw'>end</span></pre>
2729
- </td>
2730
- </tr>
2731
- </table>
2732
- </div>
2733
-
2734
- <div class="method_details ">
2735
- <p class="signature " id="i12-instance_method">
2736
-
2737
- - (<tt>Object</tt>) <strong>i12</strong>
2738
-
2739
-
2740
-
2741
- </p><div class="docstring">
2742
- <div class="discussion">
2743
- If-none-match exists?
2744
-
2745
- </div>
2746
- </div>
2747
- <div class="tags">
2748
-
2749
-
2750
- </div><table class="source_code">
2751
- <tr>
2752
- <td>
2753
- <pre class="lines">
2754
-
2755
-
2756
- 289
2757
- 290
2758
- 291</pre>
2759
- </td>
2760
- <td>
2761
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 289</span>
2762
-
2763
- <span class='kw'>def</span> <span class='id i12'>i12</span>
2764
- <span class='id request'>request</span><span class='period'>.</span><span class='id if_none_match'>if_none_match</span> <span class='op'>?</span> <span class='symbol'>:i13</span> <span class='op'>:</span> <span class='symbol'>:l13</span>
2765
- <span class='kw'>end</span></pre>
2766
- </td>
2767
- </tr>
2768
- </table>
2769
- </div>
2770
-
2771
- <div class="method_details ">
2772
- <p class="signature " id="i13-instance_method">
2773
-
2774
- - (<tt>Object</tt>) <strong>i13</strong>
2775
-
2776
-
2777
-
2778
- </p><div class="docstring">
2779
- <div class="discussion">
2780
- If-none-match: * exists?
2781
-
2782
- </div>
2783
- </div>
2784
- <div class="tags">
2785
-
2786
-
2787
- </div><table class="source_code">
2788
- <tr>
2789
- <td>
2790
- <pre class="lines">
2791
-
2792
-
2793
- 294
2794
- 295
2795
- 296</pre>
2796
- </td>
2797
- <td>
2798
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 294</span>
2799
-
2800
- <span class='kw'>def</span> <span class='id i13'>i13</span>
2801
- <span class='id request'>request</span><span class='period'>.</span><span class='id if_none_match'>if_none_match</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:j18</span> <span class='op'>:</span> <span class='symbol'>:k13</span>
2802
- <span class='kw'>end</span></pre>
2803
- </td>
2804
- </tr>
2805
- </table>
2806
- </div>
2807
-
2808
- <div class="method_details ">
2809
- <p class="signature " id="i4-instance_method">
2810
-
2811
- - (<tt>Object</tt>) <strong>i4</strong>
2812
-
2813
-
2814
-
2815
- </p><div class="docstring">
2816
- <div class="discussion">
2817
- Moved permanently? (apply PUT to different URI)
2818
-
2819
- </div>
2820
- </div>
2821
- <div class="tags">
2822
-
2823
-
2824
- </div><table class="source_code">
2825
- <tr>
2826
- <td>
2827
- <pre class="lines">
2828
-
2829
-
2830
- 271
2831
- 272
2832
- 273
2833
- 274
2834
- 275
2835
- 276
2836
- 277
2837
- 278
2838
- 279
2839
- 280
2840
- 281</pre>
2841
- </td>
2842
- <td>
2843
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 271</span>
2844
-
2845
- <span class='kw'>def</span> <span class='id i4'>i4</span>
2846
- <span class='kw'>case</span> <span class='id uri'>uri</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id moved_permanently?'>moved_permanently?</span>
2847
- <span class='kw'>when</span> <span class='const'>String</span><span class='comma'>,</span> <span class='const'>URI</span>
2848
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Location</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id uri'>uri</span><span class='period'>.</span><span class='id to_s'>to_s</span>
2849
- <span class='int'>301</span>
2850
- <span class='kw'>when</span> <span class='const'>Fixnum</span>
2851
- <span class='id uri'>uri</span>
2852
- <span class='kw'>else</span>
2853
- <span class='symbol'>:p3</span>
2854
- <span class='kw'>end</span>
2855
- <span class='kw'>end</span></pre>
2856
- </td>
2857
- </tr>
2858
- </table>
2859
- </div>
2860
-
2861
- <div class="method_details ">
2862
- <p class="signature " id="i7-instance_method">
2863
-
2864
- - (<tt>Object</tt>) <strong>i7</strong>
2865
-
2866
-
2867
-
2868
- </p><div class="docstring">
2869
- <div class="discussion">
2870
- PUT?
2871
-
2872
- </div>
2873
- </div>
2874
- <div class="tags">
2875
-
2876
-
2877
- </div><table class="source_code">
2878
- <tr>
2879
- <td>
2880
- <pre class="lines">
2881
-
2882
-
2883
- 284
2884
- 285
2885
- 286</pre>
2886
- </td>
2887
- <td>
2888
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 284</span>
2889
-
2890
- <span class='kw'>def</span> <span class='id i7'>i7</span>
2891
- <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>PUT</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:i4</span> <span class='op'>:</span> <span class='symbol'>:k7</span>
2892
- <span class='kw'>end</span></pre>
2893
- </td>
2894
- </tr>
2895
- </table>
2896
- </div>
2897
-
2898
- <div class="method_details ">
2899
- <p class="signature " id="j18-instance_method">
2900
-
2901
- - (<tt>Object</tt>) <strong>j18</strong>
2902
-
2903
-
2904
-
2905
- </p><div class="docstring">
2906
- <div class="discussion">
2907
- GET or HEAD?
2908
-
2909
- </div>
2910
- </div>
2911
- <div class="tags">
2912
-
2913
-
2914
- </div><table class="source_code">
2915
- <tr>
2916
- <td>
2917
- <pre class="lines">
2918
-
2919
-
2920
- 299
2921
- 300
2922
- 301</pre>
2923
- </td>
2924
- <td>
2925
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 299</span>
2926
-
2927
- <span class='kw'>def</span> <span class='id j18'>j18</span>
2928
- <span class='qwords_beg'>%w{</span><span class='tstring_content'>GET</span><span class='words_sep'> </span><span class='tstring_content'>HEAD</span><span class='words_sep'>}</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='int'>304</span> <span class='op'>:</span> <span class='int'>412</span>
2929
- <span class='kw'>end</span></pre>
2930
- </td>
2931
- </tr>
2932
- </table>
2933
- </div>
2934
-
2935
- <div class="method_details ">
2936
- <p class="signature " id="k13-instance_method">
2937
-
2938
- - (<tt>Object</tt>) <strong>k13</strong>
2939
-
2940
-
2941
-
2942
- </p><div class="docstring">
2943
- <div class="discussion">
2944
- Etag in if-none-match?
2945
-
2946
- </div>
2947
- </div>
2948
- <div class="tags">
2949
-
2950
-
2951
- </div><table class="source_code">
2952
- <tr>
2953
- <td>
2954
- <pre class="lines">
2955
-
2956
-
2957
- 322
2958
- 323
2959
- 324
2960
- 325</pre>
2961
- </td>
2962
- <td>
2963
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 322</span>
2964
-
2965
- <span class='kw'>def</span> <span class='id k13'>k13</span>
2966
- <span class='id request_etags'>request_etags</span> <span class='op'>=</span> <span class='id request'>request</span><span class='period'>.</span><span class='id if_none_match'>if_none_match</span><span class='period'>.</span><span class='id split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\s*,\s*</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id etag'>etag</span><span class='op'>|</span> <span class='id unquote_header'>unquote_header</span><span class='lparen'>(</span><span class='id etag'>etag</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
2967
- <span class='id request_etags'>request_etags</span><span class='period'>.</span><span class='id include?'>include?</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id generate_etag'>generate_etag</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='symbol'>:j18</span> <span class='op'>:</span> <span class='symbol'>:l13</span>
2968
- <span class='kw'>end</span></pre>
2969
- </td>
2970
- </tr>
2971
- </table>
2972
- </div>
2973
-
2974
- <div class="method_details ">
2975
- <p class="signature " id="k5-instance_method">
2976
-
2977
- - (<tt>Object</tt>) <strong>k5</strong>
2978
-
2979
-
2980
-
2981
- </p><div class="docstring">
2982
- <div class="discussion">
2983
- Moved permanently?
2984
-
2985
- </div>
2986
- </div>
2987
- <div class="tags">
2988
-
2989
-
2990
- </div><table class="source_code">
2991
- <tr>
2992
- <td>
2993
- <pre class="lines">
2994
-
2995
-
2996
- 304
2997
- 305
2998
- 306
2999
- 307
3000
- 308
3001
- 309
3002
- 310
3003
- 311
3004
- 312
3005
- 313
3006
- 314</pre>
3007
- </td>
3008
- <td>
3009
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 304</span>
3010
-
3011
- <span class='kw'>def</span> <span class='id k5'>k5</span>
3012
- <span class='kw'>case</span> <span class='id uri'>uri</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id moved_permanently?'>moved_permanently?</span>
3013
- <span class='kw'>when</span> <span class='const'>String</span><span class='comma'>,</span> <span class='const'>URI</span>
3014
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Location</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id uri'>uri</span><span class='period'>.</span><span class='id to_s'>to_s</span>
3015
- <span class='int'>301</span>
3016
- <span class='kw'>when</span> <span class='const'>Fixnum</span>
3017
- <span class='id uri'>uri</span>
3018
- <span class='kw'>else</span>
3019
- <span class='symbol'>:l5</span>
3020
- <span class='kw'>end</span>
3021
- <span class='kw'>end</span></pre>
3022
- </td>
3023
- </tr>
3024
- </table>
3025
- </div>
3026
-
3027
- <div class="method_details ">
3028
- <p class="signature " id="k7-instance_method">
3029
-
3030
- - (<tt>Object</tt>) <strong>k7</strong>
3031
-
3032
-
3033
-
3034
- </p><div class="docstring">
3035
- <div class="discussion">
3036
- Previously existed?
3037
-
3038
- </div>
3039
- </div>
3040
- <div class="tags">
3041
-
3042
-
3043
- </div><table class="source_code">
3044
- <tr>
3045
- <td>
3046
- <pre class="lines">
3047
-
3048
-
3049
- 317
3050
- 318
3051
- 319</pre>
3052
- </td>
3053
- <td>
3054
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 317</span>
3055
-
3056
- <span class='kw'>def</span> <span class='id k7'>k7</span>
3057
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id previously_existed?'>previously_existed?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:k5</span><span class='comma'>,</span> <span class='symbol'>:l7</span><span class='rparen'>)</span>
3058
- <span class='kw'>end</span></pre>
3059
- </td>
3060
- </tr>
3061
- </table>
3062
- </div>
3063
-
3064
- <div class="method_details ">
3065
- <p class="signature " id="l13-instance_method">
3066
-
3067
- - (<tt>Object</tt>) <strong>l13</strong>
3068
-
3069
-
3070
-
3071
- </p><div class="docstring">
3072
- <div class="discussion">
3073
- If-Modified-Since exists?
3074
-
3075
- </div>
3076
- </div>
3077
- <div class="tags">
3078
-
3079
-
3080
- </div><table class="source_code">
3081
- <tr>
3082
- <td>
3083
- <pre class="lines">
3084
-
3085
-
3086
- 346
3087
- 347
3088
- 348</pre>
3089
- </td>
3090
- <td>
3091
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 346</span>
3092
-
3093
- <span class='kw'>def</span> <span class='id l13'>l13</span>
3094
- <span class='id request'>request</span><span class='period'>.</span><span class='id if_modified_since'>if_modified_since</span> <span class='op'>?</span> <span class='symbol'>:l14</span> <span class='op'>:</span> <span class='symbol'>:m16</span>
3095
- <span class='kw'>end</span></pre>
3096
- </td>
3097
- </tr>
3098
- </table>
3099
- </div>
3100
-
3101
- <div class="method_details ">
3102
- <p class="signature " id="l14-instance_method">
3103
-
3104
- - (<tt>Object</tt>) <strong>l14</strong>
3105
-
3106
-
3107
-
3108
- </p><div class="docstring">
3109
- <div class="discussion">
3110
- IMS is valid date?
3111
-
3112
- </div>
3113
- </div>
3114
- <div class="tags">
3115
-
3116
-
3117
- </div><table class="source_code">
3118
- <tr>
3119
- <td>
3120
- <pre class="lines">
3121
-
3122
-
3123
- 351
3124
- 352
3125
- 353
3126
- 354
3127
- 355
3128
- 356
3129
- 357
3130
- 358</pre>
3131
- </td>
3132
- <td>
3133
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 351</span>
3134
-
3135
- <span class='kw'>def</span> <span class='id l14'>l14</span>
3136
- <span class='id date'>date</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id httpdate'>httpdate</span><span class='lparen'>(</span><span class='id request'>request</span><span class='period'>.</span><span class='id if_modified_since'>if_modified_since</span><span class='rparen'>)</span>
3137
- <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>If-Modified-Since</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id date'>date</span>
3138
- <span class='kw'>rescue</span> <span class='const'>ArgumentError</span>
3139
- <span class='symbol'>:m16</span>
3140
- <span class='kw'>else</span>
3141
- <span class='symbol'>:l15</span>
3142
- <span class='kw'>end</span></pre>
3143
- </td>
3144
- </tr>
3145
- </table>
3146
- </div>
3147
-
3148
- <div class="method_details ">
3149
- <p class="signature " id="l15-instance_method">
3150
-
3151
- - (<tt>Object</tt>) <strong>l15</strong>
3152
-
3153
-
3154
-
3155
- </p><div class="docstring">
3156
- <div class="discussion">
3157
- IMS &gt; Now?
3158
-
3159
- </div>
3160
- </div>
3161
- <div class="tags">
3162
-
3163
-
3164
- </div><table class="source_code">
3165
- <tr>
3166
- <td>
3167
- <pre class="lines">
3168
-
3169
-
3170
- 361
3171
- 362
3172
- 363</pre>
3173
- </td>
3174
- <td>
3175
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 361</span>
3176
-
3177
- <span class='kw'>def</span> <span class='id l15'>l15</span>
3178
- <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>If-Modified-Since</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>&gt;</span> <span class='const'>Time</span><span class='period'>.</span><span class='id now'>now</span> <span class='op'>?</span> <span class='symbol'>:m16</span> <span class='op'>:</span> <span class='symbol'>:l17</span>
3179
- <span class='kw'>end</span></pre>
3180
- </td>
3181
- </tr>
3182
- </table>
3183
- </div>
3184
-
3185
- <div class="method_details ">
3186
- <p class="signature " id="l17-instance_method">
3187
-
3188
- - (<tt>Object</tt>) <strong>l17</strong>
3189
-
3190
-
3191
-
3192
- </p><div class="docstring">
3193
- <div class="discussion">
3194
- Last-Modified &gt; IMS?
3195
-
3196
- </div>
3197
- </div>
3198
- <div class="tags">
3199
-
3200
-
3201
- </div><table class="source_code">
3202
- <tr>
3203
- <td>
3204
- <pre class="lines">
3205
-
3206
-
3207
- 366
3208
- 367
3209
- 368</pre>
3210
- </td>
3211
- <td>
3212
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 366</span>
3213
-
3214
- <span class='kw'>def</span> <span class='id l17'>l17</span>
3215
- <span class='id resource'>resource</span><span class='period'>.</span><span class='id last_modified'>last_modified</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='op'>||</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id last_modified'>last_modified</span> <span class='op'>&gt;</span> <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>If-Modified-Since</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>?</span> <span class='symbol'>:m16</span> <span class='op'>:</span> <span class='int'>304</span>
3216
- <span class='kw'>end</span></pre>
3217
- </td>
3218
- </tr>
3219
- </table>
3220
- </div>
3221
-
3222
- <div class="method_details ">
3223
- <p class="signature " id="l5-instance_method">
3224
-
3225
- - (<tt>Object</tt>) <strong>l5</strong>
3226
-
3227
-
3228
-
3229
- </p><div class="docstring">
3230
- <div class="discussion">
3231
- Moved temporarily?
3232
-
3233
- </div>
3234
- </div>
3235
- <div class="tags">
3236
-
3237
-
3238
- </div><table class="source_code">
3239
- <tr>
3240
- <td>
3241
- <pre class="lines">
3242
-
3243
-
3244
- 328
3245
- 329
3246
- 330
3247
- 331
3248
- 332
3249
- 333
3250
- 334
3251
- 335
3252
- 336
3253
- 337
3254
- 338</pre>
3255
- </td>
3256
- <td>
3257
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 328</span>
3258
-
3259
- <span class='kw'>def</span> <span class='id l5'>l5</span>
3260
- <span class='kw'>case</span> <span class='id uri'>uri</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id moved_temporarily?'>moved_temporarily?</span>
3261
- <span class='kw'>when</span> <span class='const'>String</span><span class='comma'>,</span> <span class='const'>URI</span>
3262
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Location</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id uri'>uri</span><span class='period'>.</span><span class='id to_s'>to_s</span>
3263
- <span class='int'>307</span>
3264
- <span class='kw'>when</span> <span class='const'>Fixnum</span>
3265
- <span class='id uri'>uri</span>
3266
- <span class='kw'>else</span>
3267
- <span class='symbol'>:m5</span>
3268
- <span class='kw'>end</span>
3269
- <span class='kw'>end</span></pre>
3270
- </td>
3271
- </tr>
3272
- </table>
3273
- </div>
3274
-
3275
- <div class="method_details ">
3276
- <p class="signature " id="l7-instance_method">
3277
-
3278
- - (<tt>Object</tt>) <strong>l7</strong>
3279
-
3280
-
3281
-
3282
- </p><div class="docstring">
3283
- <div class="discussion">
3284
- POST?
3285
-
3286
- </div>
3287
- </div>
3288
- <div class="tags">
3289
-
3290
-
3291
- </div><table class="source_code">
3292
- <tr>
3293
- <td>
3294
- <pre class="lines">
3295
-
3296
-
3297
- 341
3298
- 342
3299
- 343</pre>
3300
- </td>
3301
- <td>
3302
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 341</span>
3303
-
3304
- <span class='kw'>def</span> <span class='id l7'>l7</span>
3305
- <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>POST</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:m7</span> <span class='op'>:</span> <span class='int'>404</span>
3306
- <span class='kw'>end</span></pre>
3307
- </td>
3308
- </tr>
3309
- </table>
3310
- </div>
3311
-
3312
- <div class="method_details ">
3313
- <p class="signature " id="m16-instance_method">
3314
-
3315
- - (<tt>Object</tt>) <strong>m16</strong>
3316
-
3317
-
3318
-
3319
- </p><div class="docstring">
3320
- <div class="discussion">
3321
- DELETE?
3322
-
3323
- </div>
3324
- </div>
3325
- <div class="tags">
3326
-
3327
-
3328
- </div><table class="source_code">
3329
- <tr>
3330
- <td>
3331
- <pre class="lines">
3332
-
3333
-
3334
- 381
3335
- 382
3336
- 383</pre>
3337
- </td>
3338
- <td>
3339
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 381</span>
3340
-
3341
- <span class='kw'>def</span> <span class='id m16'>m16</span>
3342
- <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>DELETE</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:m20</span> <span class='op'>:</span> <span class='symbol'>:n16</span>
3343
- <span class='kw'>end</span></pre>
3344
- </td>
3345
- </tr>
3346
- </table>
3347
- </div>
3348
-
3349
- <div class="method_details ">
3350
- <p class="signature " id="m20-instance_method">
3351
-
3352
- - (<tt>Object</tt>) <strong>m20</strong>
3353
-
3354
-
3355
-
3356
- </p><div class="docstring">
3357
- <div class="discussion">
3358
- DELETE enacted immediately? (Also where DELETE is forced.)
3359
-
3360
- </div>
3361
- </div>
3362
- <div class="tags">
3363
-
3364
-
3365
- </div><table class="source_code">
3366
- <tr>
3367
- <td>
3368
- <pre class="lines">
3369
-
3370
-
3371
- 386
3372
- 387
3373
- 388</pre>
3374
- </td>
3375
- <td>
3376
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 386</span>
3377
-
3378
- <span class='kw'>def</span> <span class='id m20'>m20</span>
3379
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id delete_resource'>delete_resource</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:m20b</span><span class='comma'>,</span> <span class='int'>500</span><span class='rparen'>)</span>
3380
- <span class='kw'>end</span></pre>
3381
- </td>
3382
- </tr>
3383
- </table>
3384
- </div>
3385
-
3386
- <div class="method_details ">
3387
- <p class="signature " id="m20b-instance_method">
3388
-
3389
- - (<tt>Object</tt>) <strong>m20b</strong>
3390
-
3391
-
3392
-
3393
- </p><div class="docstring">
3394
- <div class="discussion">
3395
- Did the DELETE complete?
3396
-
3397
- </div>
3398
- </div>
3399
- <div class="tags">
3400
-
3401
-
3402
- </div><table class="source_code">
3403
- <tr>
3404
- <td>
3405
- <pre class="lines">
3406
-
3407
-
3408
- 391
3409
- 392
3410
- 393</pre>
3411
- </td>
3412
- <td>
3413
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 391</span>
3414
-
3415
- <span class='kw'>def</span> <span class='id m20b'>m20b</span>
3416
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id delete_completed?'>delete_completed?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:o20</span><span class='comma'>,</span> <span class='int'>202</span><span class='rparen'>)</span>
3417
- <span class='kw'>end</span></pre>
3418
- </td>
3419
- </tr>
3420
- </table>
3421
- </div>
3422
-
3423
- <div class="method_details ">
3424
- <p class="signature " id="m5-instance_method">
3425
-
3426
- - (<tt>Object</tt>) <strong>m5</strong>
3427
-
3428
-
3429
-
3430
- </p><div class="docstring">
3431
- <div class="discussion">
3432
- POST?
3433
-
3434
- </div>
3435
- </div>
3436
- <div class="tags">
3437
-
3438
-
3439
- </div><table class="source_code">
3440
- <tr>
3441
- <td>
3442
- <pre class="lines">
3443
-
3444
-
3445
- 371
3446
- 372
3447
- 373</pre>
3448
- </td>
3449
- <td>
3450
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 371</span>
3451
-
3452
- <span class='kw'>def</span> <span class='id m5'>m5</span>
3453
- <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>POST</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:n5</span> <span class='op'>:</span> <span class='int'>410</span>
3454
- <span class='kw'>end</span></pre>
3455
- </td>
3456
- </tr>
3457
- </table>
3458
- </div>
3459
-
3460
- <div class="method_details ">
3461
- <p class="signature " id="m7-instance_method">
3462
-
3463
- - (<tt>Object</tt>) <strong>m7</strong>
3464
-
3465
-
3466
-
3467
- </p><div class="docstring">
3468
- <div class="discussion">
3469
- Server allows POST to missing resource?
3470
-
3471
- </div>
3472
- </div>
3473
- <div class="tags">
3474
-
3475
-
3476
- </div><table class="source_code">
3477
- <tr>
3478
- <td>
3479
- <pre class="lines">
3480
-
3481
-
3482
- 376
3483
- 377
3484
- 378</pre>
3485
- </td>
3486
- <td>
3487
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 376</span>
3488
-
3489
- <span class='kw'>def</span> <span class='id m7'>m7</span>
3490
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id allow_missing_post?'>allow_missing_post?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:n11</span><span class='comma'>,</span> <span class='int'>404</span><span class='rparen'>)</span>
3491
- <span class='kw'>end</span></pre>
3492
- </td>
3493
- </tr>
3494
- </table>
3495
- </div>
3496
-
3497
- <div class="method_details ">
3498
- <p class="signature " id="n11-instance_method">
3499
-
3500
- - (<tt>Object</tt>) <strong>n11</strong>
3501
-
3502
-
3503
-
3504
- </p><div class="docstring">
3505
- <div class="discussion">
3506
- Redirect?
3507
-
3508
- </div>
3509
- </div>
3510
- <div class="tags">
3511
-
3512
-
3513
- </div><table class="source_code">
3514
- <tr>
3515
- <td>
3516
- <pre class="lines">
3517
-
3518
-
3519
- 401
3520
- 402
3521
- 403
3522
- 404
3523
- 405
3524
- 406
3525
- 407
3526
- 408
3527
- 409
3528
- 410
3529
- 411
3530
- 412
3531
- 413
3532
- 414
3533
- 415
3534
- 416
3535
- 417
3536
- 418
3537
- 419
3538
- 420
3539
- 421
3540
- 422
3541
- 423
3542
- 424
3543
- 425
3544
- 426
3545
- 427
3546
- 428
3547
- 429
3548
- 430
3549
- 431
3550
- 432
3551
- 433
3552
- 434</pre>
3553
- </td>
3554
- <td>
3555
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 401</span>
3556
-
3557
- <span class='kw'>def</span> <span class='id n11'>n11</span>
3558
- <span class='comment'># Stage1
3559
- </span> <span class='kw'>if</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id post_is_create?'>post_is_create?</span>
3560
- <span class='kw'>case</span> <span class='id uri'>uri</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id create_path'>create_path</span>
3561
- <span class='kw'>when</span> <span class='kw'>nil</span>
3562
- <span class='id raise'>raise</span> <span class='const'>InvalidResource</span><span class='comma'>,</span> <span class='id t'>t</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>create_path_nil</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id class'>class</span><span class='rparen'>)</span>
3563
- <span class='kw'>when</span> <span class='const'>URI</span><span class='comma'>,</span> <span class='const'>String</span>
3564
- <span class='id base_uri'>base_uri</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id base_uri'>base_uri</span> <span class='op'>||</span> <span class='id request'>request</span><span class='period'>.</span><span class='id base_uri'>base_uri</span>
3565
- <span class='id new_uri'>new_uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='period'>.</span><span class='id join'>join</span><span class='lparen'>(</span><span class='id base_uri'>base_uri</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='comma'>,</span> <span class='id uri'>uri</span><span class='rparen'>)</span>
3566
- <span class='id request'>request</span><span class='period'>.</span><span class='id disp_path'>disp_path</span> <span class='op'>=</span> <span class='id new_uri'>new_uri</span><span class='period'>.</span><span class='id path'>path</span>
3567
- <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Location</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id new_uri'>new_uri</span><span class='period'>.</span><span class='id to_s'>to_s</span>
3568
- <span class='id result'>result</span> <span class='op'>=</span> <span class='id accept_helper'>accept_helper</span>
3569
- <span class='kw'>return</span> <span class='id result'>result</span> <span class='kw'>if</span> <span class='const'>Fixnum</span> <span class='op'>===</span> <span class='id result'>result</span>
3570
- <span class='kw'>end</span>
3571
- <span class='kw'>else</span>
3572
- <span class='kw'>case</span> <span class='id result'>result</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id process_post'>process_post</span>
3573
- <span class='kw'>when</span> <span class='kw'>true</span>
3574
- <span class='id encode_body_if_set'>encode_body_if_set</span>
3575
- <span class='kw'>when</span> <span class='const'>Fixnum</span>
3576
- <span class='kw'>return</span> <span class='id result'>result</span>
3577
- <span class='kw'>else</span>
3578
- <span class='id raise'>raise</span> <span class='const'>InvalidResource</span><span class='comma'>,</span> <span class='id t'>t</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>process_post_invalid</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='symbol'>:result</span> <span class='op'>=&gt;</span> <span class='id result'>result</span><span class='rparen'>)</span>
3579
- <span class='kw'>end</span>
3580
- <span class='kw'>end</span>
3581
- <span class='kw'>if</span> <span class='id response'>response</span><span class='period'>.</span><span class='id is_redirect?'>is_redirect?</span>
3582
- <span class='kw'>if</span> <span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Location</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
3583
- <span class='int'>303</span>
3584
- <span class='kw'>else</span>
3585
- <span class='id raise'>raise</span> <span class='const'>InvalidResource</span><span class='comma'>,</span> <span class='id t'>t</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>do_redirect</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
3586
- <span class='kw'>end</span>
3587
- <span class='kw'>else</span>
3588
- <span class='symbol'>:p11</span>
3589
- <span class='kw'>end</span>
3590
- <span class='kw'>end</span></pre>
3591
- </td>
3592
- </tr>
3593
- </table>
3594
- </div>
3595
-
3596
- <div class="method_details ">
3597
- <p class="signature " id="n16-instance_method">
3598
-
3599
- - (<tt>Object</tt>) <strong>n16</strong>
3600
-
3601
-
3602
-
3603
- </p><div class="docstring">
3604
- <div class="discussion">
3605
- POST?
3606
-
3607
- </div>
3608
- </div>
3609
- <div class="tags">
3610
-
3611
-
3612
- </div><table class="source_code">
3613
- <tr>
3614
- <td>
3615
- <pre class="lines">
3616
-
3617
-
3618
- 437
3619
- 438
3620
- 439</pre>
3621
- </td>
3622
- <td>
3623
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 437</span>
3624
-
3625
- <span class='kw'>def</span> <span class='id n16'>n16</span>
3626
- <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>POST</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:n11</span> <span class='op'>:</span> <span class='symbol'>:o16</span>
3627
- <span class='kw'>end</span></pre>
3628
- </td>
3629
- </tr>
3630
- </table>
3631
- </div>
3632
-
3633
- <div class="method_details ">
3634
- <p class="signature " id="n5-instance_method">
3635
-
3636
- - (<tt>Object</tt>) <strong>n5</strong>
3637
-
3638
-
3639
-
3640
- </p><div class="docstring">
3641
- <div class="discussion">
3642
- Server allows POST to missing resource?
3643
-
3644
- </div>
3645
- </div>
3646
- <div class="tags">
3647
-
3648
-
3649
- </div><table class="source_code">
3650
- <tr>
3651
- <td>
3652
- <pre class="lines">
3653
-
3654
-
3655
- 396
3656
- 397
3657
- 398</pre>
3658
- </td>
3659
- <td>
3660
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 396</span>
3661
-
3662
- <span class='kw'>def</span> <span class='id n5'>n5</span>
3663
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id allow_missing_post?'>allow_missing_post?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='symbol'>:n11</span><span class='comma'>,</span> <span class='int'>410</span><span class='rparen'>)</span>
3664
- <span class='kw'>end</span></pre>
3665
- </td>
3666
- </tr>
3667
- </table>
3668
- </div>
3669
-
3670
- <div class="method_details ">
3671
- <p class="signature " id="o14-instance_method">
3672
-
3673
- - (<tt>Object</tt>) <strong>o14</strong>
3674
-
3675
-
3676
-
3677
- </p><div class="docstring">
3678
- <div class="discussion">
3679
- Conflict?
3680
-
3681
- </div>
3682
- </div>
3683
- <div class="tags">
3684
-
3685
-
3686
- </div><table class="source_code">
3687
- <tr>
3688
- <td>
3689
- <pre class="lines">
3690
-
3691
-
3692
- 442
3693
- 443
3694
- 444
3695
- 445
3696
- 446
3697
- 447
3698
- 448
3699
- 449</pre>
3700
- </td>
3701
- <td>
3702
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 442</span>
3703
-
3704
- <span class='kw'>def</span> <span class='id o14'>o14</span>
3705
- <span class='kw'>if</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id is_conflict?'>is_conflict?</span>
3706
- <span class='int'>409</span>
3707
- <span class='kw'>else</span>
3708
- <span class='id res'>res</span> <span class='op'>=</span> <span class='id accept_helper'>accept_helper</span>
3709
- <span class='lparen'>(</span><span class='const'>Fixnum</span> <span class='op'>===</span> <span class='id res'>res</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id res'>res</span> <span class='op'>:</span> <span class='symbol'>:p11</span>
3710
- <span class='kw'>end</span>
3711
- <span class='kw'>end</span></pre>
3712
- </td>
3713
- </tr>
3714
- </table>
3715
- </div>
3716
-
3717
- <div class="method_details ">
3718
- <p class="signature " id="o16-instance_method">
3719
-
3720
- - (<tt>Object</tt>) <strong>o16</strong>
3721
-
3722
-
3723
-
3724
- </p><div class="docstring">
3725
- <div class="discussion">
3726
- PUT?
3727
-
3728
- </div>
3729
- </div>
3730
- <div class="tags">
3731
-
3732
-
3733
- </div><table class="source_code">
3734
- <tr>
3735
- <td>
3736
- <pre class="lines">
3737
-
3738
-
3739
- 452
3740
- 453
3741
- 454</pre>
3742
- </td>
3743
- <td>
3744
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 452</span>
3745
-
3746
- <span class='kw'>def</span> <span class='id o16'>o16</span>
3747
- <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>PUT</span><span class='tstring_end'>&quot;</span></span> <span class='op'>?</span> <span class='symbol'>:o14</span> <span class='op'>:</span> <span class='symbol'>:o18</span>
3748
- <span class='kw'>end</span></pre>
3749
- </td>
3750
- </tr>
3751
- </table>
3752
- </div>
3753
-
3754
- <div class="method_details ">
3755
- <p class="signature " id="o18-instance_method">
3756
-
3757
- - (<tt>Object</tt>) <strong>o18</strong>
3758
-
3759
-
3760
-
3761
- </p><div class="docstring">
3762
- <div class="discussion">
3763
- Multiple representations?
3764
- Also where body generation for GET and HEAD is done.
3765
-
3766
- </div>
3767
- </div>
3768
- <div class="tags">
3769
-
3770
-
3771
- </div><table class="source_code">
3772
- <tr>
3773
- <td>
3774
- <pre class="lines">
3775
-
3776
-
3777
- 458
3778
- 459
3779
- 460
3780
- 461
3781
- 462
3782
- 463
3783
- 464
3784
- 465
3785
- 466
3786
- 467
3787
- 468
3788
- 469
3789
- 470
3790
- 471
3791
- 472
3792
- 473
3793
- 474</pre>
3794
- </td>
3795
- <td>
3796
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 458</span>
3797
-
3798
- <span class='kw'>def</span> <span class='id o18'>o18</span>
3799
- <span class='kw'>if</span> <span class='id request'>request</span><span class='period'>.</span><span class='id method'>method</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^(GET|HEAD)$</span><span class='regexp_end'>/</span></span>
3800
- <span class='id add_caching_headers'>add_caching_headers</span>
3801
- <span class='id content_type'>content_type</span> <span class='op'>=</span> <span class='id metadata'>metadata</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
3802
- <span class='id handler'>handler</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id content_types_provided'>content_types_provided</span><span class='period'>.</span><span class='id find'>find</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id ct'>ct</span><span class='comma'>,</span> <span class='id _'>_</span><span class='op'>|</span> <span class='id content_type'>content_type</span><span class='period'>.</span><span class='id type_matches?'>type_matches?</span><span class='lparen'>(</span><span class='const'>MediaType</span><span class='period'>.</span><span class='id parse'>parse</span><span class='lparen'>(</span><span class='id ct'>ct</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id last'>last</span>
3803
- <span class='id result'>result</span> <span class='op'>=</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id handler'>handler</span><span class='rparen'>)</span>
3804
- <span class='kw'>if</span> <span class='const'>Fixnum</span> <span class='op'>===</span> <span class='id result'>result</span>
3805
- <span class='id result'>result</span>
3806
- <span class='kw'>else</span>
3807
- <span class='id response'>response</span><span class='period'>.</span><span class='id body'>body</span> <span class='op'>=</span> <span class='id result'>result</span>
3808
- <span class='id encode_body'>encode_body</span>
3809
- <span class='symbol'>:o18b</span>
3810
- <span class='kw'>end</span>
3811
- <span class='kw'>else</span>
3812
- <span class='symbol'>:o18b</span>
3813
- <span class='kw'>end</span>
3814
- <span class='kw'>end</span></pre>
3815
- </td>
3816
- </tr>
3817
- </table>
3818
- </div>
3819
-
3820
- <div class="method_details ">
3821
- <p class="signature " id="o18b-instance_method">
3822
-
3823
- - (<tt>Object</tt>) <strong>o18b</strong>
3824
-
3825
-
3826
-
3827
- </p><div class="docstring">
3828
- <div class="discussion">
3829
- Multiple choices?
3830
-
3831
- </div>
3832
- </div>
3833
- <div class="tags">
3834
-
3835
-
3836
- </div><table class="source_code">
3837
- <tr>
3838
- <td>
3839
- <pre class="lines">
3840
-
3841
-
3842
- 477
3843
- 478
3844
- 479</pre>
3845
- </td>
3846
- <td>
3847
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 477</span>
3848
-
3849
- <span class='kw'>def</span> <span class='id o18b'>o18b</span>
3850
- <span class='id decision_test'>decision_test</span><span class='lparen'>(</span><span class='id resource'>resource</span><span class='period'>.</span><span class='id multiple_choices?'>multiple_choices?</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='int'>300</span><span class='comma'>,</span> <span class='int'>200</span><span class='rparen'>)</span>
3851
- <span class='kw'>end</span></pre>
3852
- </td>
3853
- </tr>
3854
- </table>
3855
- </div>
3856
-
3857
- <div class="method_details ">
3858
- <p class="signature " id="o20-instance_method">
3859
-
3860
- - (<tt>Object</tt>) <strong>o20</strong>
3861
-
3862
-
3863
-
3864
- </p><div class="docstring">
3865
- <div class="discussion">
3866
- Response includes an entity?
3867
-
3868
- </div>
3869
- </div>
3870
- <div class="tags">
3871
-
3872
-
3873
- </div><table class="source_code">
3874
- <tr>
3875
- <td>
3876
- <pre class="lines">
3877
-
3878
-
3879
- 482
3880
- 483
3881
- 484</pre>
3882
- </td>
3883
- <td>
3884
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 482</span>
3885
-
3886
- <span class='kw'>def</span> <span class='id o20'>o20</span>
3887
- <span class='id has_response_body?'>has_response_body?</span> <span class='op'>?</span> <span class='symbol'>:o18</span> <span class='op'>:</span> <span class='int'>204</span>
3888
- <span class='kw'>end</span></pre>
3889
- </td>
3890
- </tr>
3891
- </table>
3892
- </div>
3893
-
3894
- <div class="method_details ">
3895
- <p class="signature " id="p11-instance_method">
3896
-
3897
- - (<tt>Object</tt>) <strong>p11</strong>
3898
-
3899
-
3900
-
3901
- </p><div class="docstring">
3902
- <div class="discussion">
3903
- New resource?
3904
-
3905
- </div>
3906
- </div>
3907
- <div class="tags">
3908
-
3909
-
3910
- </div><table class="source_code">
3911
- <tr>
3912
- <td>
3913
- <pre class="lines">
3914
-
3915
-
3916
- 497
3917
- 498
3918
- 499</pre>
3919
- </td>
3920
- <td>
3921
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 497</span>
3922
-
3923
- <span class='kw'>def</span> <span class='id p11'>p11</span>
3924
- <span class='op'>!</span><span class='id response'>response</span><span class='period'>.</span><span class='id headers'>headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Location</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>?</span> <span class='symbol'>:o20</span> <span class='op'>:</span> <span class='int'>201</span>
3925
- <span class='kw'>end</span></pre>
3926
- </td>
3927
- </tr>
3928
- </table>
3929
- </div>
3930
-
3931
- <div class="method_details ">
3932
- <p class="signature " id="p3-instance_method">
3933
-
3934
- - (<tt>Object</tt>) <strong>p3</strong>
3935
-
3936
-
3937
-
3938
- </p><div class="docstring">
3939
- <div class="discussion">
3940
- Conflict?
3941
-
3942
- </div>
3943
- </div>
3944
- <div class="tags">
3945
-
3946
-
3947
- </div><table class="source_code">
3948
- <tr>
3949
- <td>
3950
- <pre class="lines">
3951
-
3952
-
3953
- 487
3954
- 488
3955
- 489
3956
- 490
3957
- 491
3958
- 492
3959
- 493
3960
- 494</pre>
3961
- </td>
3962
- <td>
3963
- <pre class="code"><span class="info file"># File 'lib/webmachine/decision/flow.rb', line 487</span>
3964
-
3965
- <span class='kw'>def</span> <span class='id p3'>p3</span>
3966
- <span class='kw'>if</span> <span class='id resource'>resource</span><span class='period'>.</span><span class='id is_conflict?'>is_conflict?</span>
3967
- <span class='int'>409</span>
3968
- <span class='kw'>else</span>
3969
- <span class='id res'>res</span> <span class='op'>=</span> <span class='id accept_helper'>accept_helper</span>
3970
- <span class='lparen'>(</span><span class='const'>Fixnum</span> <span class='op'>===</span> <span class='id res'>res</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id res'>res</span> <span class='op'>:</span> <span class='symbol'>:p11</span>
3971
- <span class='kw'>end</span>
3972
- <span class='kw'>end</span></pre>
3973
- </td>
3974
- </tr>
3975
- </table>
3976
- </div>
3977
-
3978
- </div>
3979
-
3980
- </div>
3981
-
3982
- <div id="footer">
3983
- Generated on Wed Jan 4 08:47:40 2012 by
3984
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
3985
- 0.7.3 (ruby-1.9.3).
3986
- </div>
3987
-
3988
- </body>
3989
- </html>