CEF HTTP/2 support

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

CEF HTTP/2 support

Postby evgeny78 » Thu May 17, 2018 2:54 am

We have a CEF based application - CEF version 3.2924/Chromium 56

Looking on network tab in Dev tools i see it uses protocol "spdy"
Chrome browser (v.66) for the same page displays "h2"

Can you please explain the difference?
Can we configure CEF to use http/2 protocol as well?

Thank you
evgeny78
Newbie
 
Posts: 5
Joined: Sun May 18, 2014 5:15 am

Re: CEF HTTP/2 support

Postby ndesktop » Thu May 17, 2018 3:30 am

Not sure about v56, but look here
Probably this section would be of help:
Code: Select all
std::string http2_trial_group =
      base::FieldTrialList::FindFullName(kHttp2FieldTrialName);
  VariationParameters http2_trial_params;
  if (!variations::GetVariationParams(kHttp2FieldTrialName,
                                      &http2_trial_params))
    http2_trial_params.clear();
  ConfigureHttp2Params(command_line, http2_trial_group, http2_trial_params,
                       params);
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: CEF HTTP/2 support

Postby evgeny78 » Thu May 17, 2018 5:16 am

lloking on this code it seems that it responsible for web socket over HTTP/2 only.
I know that Chromium shoud support HTTP/2 from v.40, also looking on the code i see
enable_http2(true) in HttpNetworkSession constructor.

Still not sure why it reported as "spdy" in Dev tools.

Thank you
evgeny78
Newbie
 
Posts: 5
Joined: Sun May 18, 2014 5:15 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 45 guests