aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Okay <okay@toyful.space>2022-02-08 15:53:11 -0600
committerColin Okay <okay@toyful.space>2022-02-08 15:53:11 -0600
commit336697b25becf8e3245c9babed9e9ef6a7825f08 (patch)
treecdce11a8dfc15bafc5363d8efd7230f57773661c
parent0d6838c0fddd95bb562c7bc4cbd8049850a48be1 (diff)
clarifying example
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2adf111..7baec7b 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,7 @@ The following is quick example showing a few things that `lazybones` can do.
"Dummy login endpoint for returning a session cookie. Always returns
the \"true\" and sends a set-cookie header, setting 'testappsession'
to 'coolsessionbro'."
+ (print (lzb:request-body)) ; dummy implementation prints post body to stdout
(setf (lzb:response-cookie "testappsession") "coolsessionbro")
(http-ok "true"))
@@ -102,7 +103,6 @@ The following is quick example showing a few things that `lazybones` can do.
(defendpoint* :post "/hello/:who:" (:auth t) ; use the default authorizor for the app
"Post something to hello who"
- (print (lzb:request-header :content-type))
(let ((body (lzb:request-body)))
(http-ok (format nil "Hello ~a, I got your message ~a"
who body))))