Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

including headers in curl output

  • Loading branch information...
commit da5865e1b0a1483aed9e8ee2412138aefb05ea70 1 parent 8a26b57
@moonmaster9000 authored
Showing with 21 additions and 4 deletions.
  1. +21 −4 README.markdown
View
25 README.markdown
@@ -58,13 +58,30 @@ Note: make sure $HOME/.cabal/bin is in your PATH.
name <- param "name"
body $ "Greetings, " ++ (maybe "Jedi!" id name)
-now:
+now recompile your app and start it flying:
+
+ λ bird nest
+ λ bird fly &
+
+ λ curl -i http://localhost:3000/force/Han/Chewie
+
+ HTTP/1.1 200 OK
+ Connection: close
+ Content-Type: text/html
+ Date: Sat, 31 Jul 2010 14:07:17 GMT
+ Server: Happstack/0.5.0.2
- λ curl http://localhost:3000/force/Han/Chewie
May the force be with you Han, Chewie!
- λ curl http://localhost:3000/droids
- Nothing to see here. Move along.
+ λ curl -i http://localhost:3000/droids
+
+ HTTP/1.1 404 Not Found
+ Connection: close
+ Content-Type: text/html
+ Date: Sat, 31 Jul 2010 14:08:35 GMT
+ Server: Happstack/0.5.0.2
+
+ These aren't the droids you're looking for. Move along.
## API
Please sign in to comment.
Something went wrong with that request. Please try again.