proxy->start_p with custom response body

10 views
Skip to first unread message

Tom Adamo

unread,
Jul 9, 2020, 11:41:22 AM7/9/20
to Mojolicious
I'm setting up an application that needs to proxy a request.

I found this example and it's working well:

I may need to possibly transform the response body (from HTML to JSON). What would be the best way to do so when using this helper?

Thanks for the help!

Sebastian Riedel

unread,
Jul 9, 2020, 2:40:12 PM7/9/20
to Mojolicious
You would not use the helper. It is specifically for passing along unaltered response content efficiently.

--
sebastian

Tom Adamo

unread,
Jul 10, 2020, 6:32:21 AM7/10/20
to mojol...@googlegroups.com
Oh, ok. Thanks for the response.

--
You received this message because you are subscribed to a topic in the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mojolicious/q-NXEiq0m6I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mojolicious...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/22d5202a-2f29-4c41-9d5c-6db8c60fd9b5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages