https://kotlinlang.org logo
#http4k
Title
# http4k
a

andyg

12/17/2019, 1:21 AM
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

dave

12/17/2019, 2:33 AM
Request.Companion.parse(request: String)
👍 1
🙃
Also, I think that toCurl truncates iirc
a

andyg

12/17/2019, 2:55 AM
thank you! I saw the invoke functions, did not see parse down below.