Commits

Justin Sheehy committed ebf1889

Automated commit message

Comments (0)

Files changed (1)

ExampleResources.wiki

 
 {{{
 $ telnet localhost 8000
+Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 GET /demo/a/resource/path HTTP/1.1
 
 HTTP/1.1 200 OK
 Vary: Accept
-Server: MochiWeb/1.1 WebMachine/0.12
-Date: Tue, 23 Sep 2008 00:47:55 GMT
+Server: MochiWeb/1.1 WebMachine/0.97
+Date: Sun, 15 Mar 2009 02:54:02 GMT
 Content-Type: text/plain
-Content-Length: 29
+Content-Length: 39
 
-Hello "a/resource/path" text
+Hello a/resource/path from webmachine.
 }}}
 
 What about authorization? Webmachine resources default to assuming the client is authorized, but that can easily be overridden. Here's an overly simplistic but illustrative example: