DescriptionAdd HTTP handler that redirects requests for Mojo apps
This CL adds an HTTP handler whose purpose is to redirect requests for Mojo
apps to the locations of the current versions of the binaries. It installs
itself as a handler for all requests and operates as follows:
(1) Ensure that the request is of the form "/platform/app", e.g.,
"/linux-x64/view_manager.mojo".
(2) Load the file containing the up-to-date version of the requested app, which
resides in a known location for the app and platform, e.g.,
"https://storage.googleapis.com/mojo/services/linux-x64/view_manager_location".
(3) Return a redirect to the contents of that file.
The expected usage of this app is to make it accessible from a server such as
https://foo.com and then to direct the Mojo shell to send requests for mojo:
apps to this server, e.g. "--origin=https://foo.com/linux-64". Note that the
platform must be specified explicitly since the shell does not send that
information at this time.
R=qsr@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/3a9bcfc3676aea5ac38f06f434a7c0827dfc9dbe
Patch Set 1 #
Total comments: 16
Patch Set 2 : Response to review #
Total comments: 10
Patch Set 3 : Response to review + update #
Total comments: 7
Patch Set 4 : Response to review #
Messages
Total messages: 16 (5 generated)
|