Add Flusher type alias . (#2078)

Co-authored-by: czyt <czyt@w.cn>
pull/2080/head
虫子樱桃 3 years ago committed by GitHub
parent 95dce00852
commit c6f6caa887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      transport/http/codec.go

@ -24,6 +24,9 @@ type Request = http.Request
// ResponseWriter type net/http.
type ResponseWriter = http.ResponseWriter
// Flusher type net/http
type Flusher = http.Flusher
// DecodeRequestFunc is decode request func.
type DecodeRequestFunc func(*http.Request, interface{}) error

Loading…
Cancel
Save