This commit is contained in:
unknown
2026-02-04 20:27:13 +08:00
commit 3b042d1dad
9410 changed files with 1488147 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package js
import "net/http"
type ResponseInterface interface {
SetHeader(name string, values []string)
DeleteHeader(name string)
Header() http.Header
Send(status int, body string)
SendFile(status int, path string) (int64, error)
SendResp(resp *http.Response) (int64, error)
Redirect(status int, url string)
}