This commit is contained in:
toom1996
2025-08-18 17:34:33 +08:00
parent 6dcea93eaa
commit 47b5625128
71 changed files with 2380 additions and 11 deletions

5
utils/host.ts Normal file
View File

@ -0,0 +1,5 @@
export async function getHost(request: Request) {
// 获取请求头中的 Host
const host = request.headers.get('host');
return host;
}