16 lines
393 B
Go
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)
|
|
}
|