1.4.5.2
This commit is contained in:
15
EdgeNode/internal/js/response_interface.go
Normal file
15
EdgeNode/internal/js/response_interface.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user