Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Writer ¶
type Writer interface {
// Flusher 继承 http.Flusher
http.Flusher
// Hijacker 继承 http.Hijacker
http.Hijacker
// ResponseWriter 继承 http.ResponseWriter
http.ResponseWriter
// GetStatusCode 获取响应状态码
GetStatusCode() int
}
Writer 自定义 HTTP 的 响应接口,继承 http.ResponseWriter
func NewWriter ¶
func NewWriter(resp http.ResponseWriter) Writer
NewWriter 创建一个基于 http.ResponseWriter 的响应
Click to show internal directories.
Click to hide internal directories.