Hi Daniel,
I have studied the HTTP.jl
library extensively.
You would need to do:
HTTP.Handlers.serve(server_host, server_port) do request::HTTP.Request
request_payload=String(take!(IOBuffer(request.body))))
end
request_payload
is JSON string format
As side note I recently created a lighter Julia web library (only renders JSON API and HTTP Get) doing all this for you. Might want to check Dance.jl
Cheers