From 2b82a8703720e794dafa714ed93ef8c0fadfaa8c Mon Sep 17 00:00:00 2001 From: Rawley <75388349+rawleyfowler@users.noreply.github.com> Date: Sun, 23 Apr 2023 09:49:49 -0600 Subject: [PATCH] Update documentation POD --- lib/Humming-Bird/Core.rakumod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Humming-Bird/Core.rakumod b/lib/Humming-Bird/Core.rakumod index 7ae8b6a..060ff53 100644 --- a/lib/Humming-Bird/Core.rakumod +++ b/lib/Humming-Bird/Core.rakumod @@ -648,8 +648,9 @@ I recommend NGiNX. This is why TLS is not implemented. Register an HTTP route, and a C that takes a Request and a Response. It is expected that the route handler returns a valid C, in this case C<.html> returns -the response object for easy chaining. There is no built in body parsers, so you'll have to -convert bodies with another library, JSON::Fast is a good option for JSON! +the response object for easy chaining. Bodies of requests can be parsed using C<.content> which +will attempt to parse the request based on the content-type, this only supports JSON and urlencoded +requests at the moment. =head3 group