Page 1 of 1

Need to access the response body in JCEF

PostPosted: Fri Dec 03, 2021 3:21 am
by lbossens
Hello,

In CEF, I see that the response body can be intercepted by using ClientHandler::GetResourceResponseFilter.
However, I don't see this feature exposed in JCEF.

1. Can you confirm there is currently no way to intercept (read only, no need to modify) the response ?
2. If it's confirmed, I would like to request this feature in JCEF. I'll already try to work on it.

Best regards,

Laurent

Re: Need to access the response body in JCEF

PostPosted: Fri Dec 03, 2021 12:35 pm
by magreenblatt
Indeed, GetResourceResponseFilter is not currently implemented in JCEF. You are welcome to implement it and submit a PR.

Re: Need to access the response body in JCEF

PostPosted: Wed Dec 15, 2021 3:28 am
by lbossens
Good morning,

Unfortunately, I couldn't create a branch so instead of doing a PR, I created a patch.
Could you review it and include it if it suites you ?

Thank you in advance,

Laurent

Re: Need to access the response body in JCEF

PostPosted: Wed Dec 15, 2021 11:06 am
by magreenblatt
A PR is required. See instructions at https://bitbucket.org/chromiumembedded/ ... ll-request

Re: Need to access the response body in JCEF

PostPosted: Thu Dec 16, 2021 6:42 am
by lbossens
Here is the PR: https://bitbucket.org/chromiumembedded/ ... sts/81/add
(btw the patch was not complete...)
Best regards

Re: Need to access the response body in JCEF

PostPosted: Wed Jan 12, 2022 3:42 am
by lbossens
Hello,

Could you please validate/merge this PR ?
Feel free to comment on the PR if needed and I'll fix any issue you'd find.

Best regards,

Laurent