Note: This is part of the Service Workers project, and assigned to myself.
For scopes which are controlled by a service worker to be able to respond with a custom response, the http_loader.rs needs a bit tweaking, to be able to know the source of the request. The network code needs to ask for custom response from client, then wrap it in a StreamedResponse.
I am currently working on it.
Note: This is part of the Service Workers project, and assigned to myself.
For scopes which are controlled by a service worker to be able to respond with a custom response, the
http_loader.rsneeds a bit tweaking, to be able to know the source of the request. The network code needs to ask for custom response from client, then wrap it in aStreamedResponse.I am currently working on it.