mirror of
https://github.com/telanflow/mps.git
synced 2025-09-26 20:41:25 +08:00
14 lines
268 B
Go
14 lines
268 B
Go
package mps
|
|
|
|
import "net/http"
|
|
|
|
type ResponseHandle interface {
|
|
Handle(resp *http.Response) *http.Response
|
|
}
|
|
|
|
type ResponseHandleFunc func(resp *http.Response) *http.Response
|
|
|
|
func (f ResponseHandleFunc) Handle(resp *http.Response) *http.Response {
|
|
return f(resp)
|
|
}
|