Files
waf-platform/EdgeNode/internal/js/response_interface.go
2026-02-04 20:27:13 +08:00

16 lines
393 B
Go

// 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)
}