Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose CEF web server API #445

Open
cztomczak opened this issue Aug 4, 2018 · 0 comments
Open

Expose CEF web server API #445

cztomczak opened this issue Aug 4, 2018 · 0 comments

Comments

@cztomczak
Copy link
Owner

cztomczak commented Aug 4, 2018

Python has a built-in http.server (and SimpleHTTPServer in Python 2), however it is slow and single threaded according to [1]. So it would be useful to expose Chromium's built-in web server.

See cef_server.h API:

  • CefServer: a web server that supports HTTP and WebSocket requests
  • CefServerHandler

Upstream issue:
https://bitbucket.org/chromiumembedded/cef/issues/2278/expose-internal-http-websockets-server

See also a multi-threaded web server in Python based on simple http server [2].

Update Tutorial and its "Communication using http requests" sub-section.

Ref:
[1] https://stackoverflow.com/questions/12905426/what-is-a-faster-alternative-to-pythons-http-server-or-simplehttpserver
[2] https://stackoverflow.com/questions/14088294/multithreaded-web-server-in-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant