From 336697b25becf8e3245c9babed9e9ef6a7825f08 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Tue, 8 Feb 2022 15:53:11 -0600 Subject: clarifying example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))) -- cgit v1.2.3