5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 18:31:39 +08:00
wails/v2/internal/frontend/assetserver
stffabi 6d09a45a30
[v2] Add support for AssetsHandler (#1325)
* [website] Fix devserver default value doc

* [v2] Add support for AssetsHandler

AssetsHandler is a http.Handler delegate, which gets called
as a fallback for all Non-GET requests and for GET requests
for which the Assets didn’t find the file.

Known Limitations on Linux:
- All requests are GET requests
- No request headers
- No request body
- No response status code, only StatusOK will be returned
- No response headers

Known Limitations on Windows:
-  Request body is leaking memory. Seems to be a bug in
    WebView2, investigation angoing.

Most of these limitations on Linux will be fixed in the future with
adding support for Webkit2Gtk 2.36.0+.

* [v2, linux] Add response streaming support

The complete response won’t be held anymore in memory and will
be streamed to WebKit2.

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2022-04-12 20:18:27 +10:00
..
testdata [windows-x] Support embed.fs assets, log runtime 2021-08-01 22:14:56 +10:00
assethandler.go [v2] Add support for AssetsHandler (#1325) 2022-04-12 20:18:27 +10:00
assetserver_browser_dev.go [v2] Add support for external frontend dev servers (#1290) 2022-03-31 00:40:44 +11:00
assetserver.go [v2] Add support for AssetsHandler (#1325) 2022-04-12 20:18:27 +10:00
common.go [v2] Add support for AssetsHandler (#1325) 2022-04-12 20:18:27 +10:00
content_type_sniffer.go [v2] Add support for AssetsHandler (#1325) 2022-04-12 20:18:27 +10:00
defaultindex.html Feature/1175 default index page (#1229) 2022-03-09 23:49:27 +11:00
mimecache_test.go [Feature #1300] mime check for bom and comments (#1302) 2022-04-01 08:39:54 +11:00
mimecache.go [Feature #1300] mime check for bom and comments (#1302) 2022-04-01 08:39:54 +11:00