Page 1 of 1
Using JCEF as HTTP Client Only
Posted:
Thu Jan 14, 2021 5:51 am
by WhiteAngel
Hello,
Is this possible to use JCEF purely as HTTP client (without the need of UI / rendering HTML / loading additional resources e.t.c.)?
Or, maybe, it's possible to use only Network Service from Chromium?
Re: Using JCEF as HTTP Client Only
Posted:
Thu Jan 14, 2021 11:46 am
by magreenblatt
You can make network requests without creating a window by using CefURLRequest
Re: Using JCEF as HTTP Client Only
Posted:
Fri Jan 15, 2021 3:42 am
by WhiteAngel
Thank you for your response, this works like a charm!
Is there any chance to extract only networking layer not to have all other unused dependencies?
Re: Using JCEF as HTTP Client Only
Posted:
Fri Jan 15, 2021 10:50 am
by magreenblatt
You can look at
cronet, but it doesn’t currently support desktop platforms.
Re: Using JCEF as HTTP Client Only
Posted:
Sat Jan 16, 2021 3:11 am
by WhiteAngel
That's an amazing hint! Thank you so much @magreenblatt! I see that cronet does have native library and there are Linux tests being run by Cronet team. So, this might work. I will give it a try!
Thank you once more!