1 Star 0 Fork 30

huangjunjie/chromium_third_party_skia

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
serve_wasm.py 605 Bytes
一键复制 编辑 原始数据 按行查看 历史
李想 提交于 2023-11-30 17:12 +08:00 . chromium 114 source init
#!/usr/bin/env python3
# Copyright 2018 Google LLC
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This is a simple webserver that applies the correct MIME type for .wasm files.
import http.server
import socketserver
PORT = 8000
class Handler(http.server.SimpleHTTPRequestHandler):
pass
Handler.extensions_map['.js'] = 'application/javascript'
# Without the correct MIME type, async compilation doesn't work
Handler.extensions_map['.wasm'] = 'application/wasm'
httpd = socketserver.TCPServer(("", PORT), Handler)
httpd.serve_forever()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangjunjie31/chromium_third_party_skia.git
git@gitee.com:huangjunjie31/chromium_third_party_skia.git
huangjunjie31
chromium_third_party_skia
chromium_third_party_skia
114_trunk

搜索帮助