diff options
author | Colin Okay <okay@toyful.space> | 2022-02-08 15:53:11 -0600 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2022-02-08 15:53:11 -0600 |
commit | 336697b25becf8e3245c9babed9e9ef6a7825f08 (patch) | |
tree | cdce11a8dfc15bafc5363d8efd7230f57773661c /README.md | |
parent | 0d6838c0fddd95bb562c7bc4cbd8049850a48be1 (diff) |
clarifying example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)))) |