thanks <@U4H0M349G>. started playing around a bit ...
# http4k
a
thanks @dave. started playing around a bit and I see those methods, however I don't see how to turn the resulting string back into a new Request. I also note there is
toCurl()
which might be even more useful, given that Curl clearly identifies headers, form fields, etc with
-H
,
--data
, etc. Plus Curl is a universal spec, a quick search shows a number of Curl to XXX interpreters in various languages.
d
Request.Companion.parse(request: String)
👍 1
🙃
Also, I think that toCurl truncates iirc
a
thank you! I saw the invoke functions, did not see parse down below.