Need to access the response body in JCEF

Having problems with building or using the JCEF Java binding? Ask your questions here.

Need to access the response body in JCEF

Postby lbossens » Fri Dec 03, 2021 3:21 am

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
lbossens
Newbie
 
Posts: 5
Joined: Fri Dec 03, 2021 3:10 am

Re: Need to access the response body in JCEF

Postby magreenblatt » Fri Dec 03, 2021 12:35 pm

Indeed, GetResourceResponseFilter is not currently implemented in JCEF. You are welcome to implement it and submit a PR.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: Need to access the response body in JCEF

Postby lbossens » Wed Dec 15, 2021 3:28 am

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
Attachments
responseFilter_20211215_lbossens.patch.txt
(11.32 KiB) Downloaded 686 times
lbossens
Newbie
 
Posts: 5
Joined: Fri Dec 03, 2021 3:10 am

Re: Need to access the response body in JCEF

Postby magreenblatt » Wed Dec 15, 2021 11:06 am

A PR is required. See instructions at https://bitbucket.org/chromiumembedded/ ... ll-request
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

Re: Need to access the response body in JCEF

Postby lbossens » Thu Dec 16, 2021 6:42 am

Here is the PR: https://bitbucket.org/chromiumembedded/ ... sts/81/add
(btw the patch was not complete...)
Best regards
lbossens
Newbie
 
Posts: 5
Joined: Fri Dec 03, 2021 3:10 am

Re: Need to access the response body in JCEF

Postby lbossens » Wed Jan 12, 2022 3:42 am

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
lbossens
Newbie
 
Posts: 5
Joined: Fri Dec 03, 2021 3:10 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 2 guests