Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileHandler ¶
func NewFileHandler(client client.FileClient, options ...Option) http.Handler
Types ¶
type Handler ¶
type Handler interface {
http.Handler
Download(w http.ResponseWriter, r *http.Request)
Upload(w http.ResponseWriter, r *http.Request)
}
type Option ¶ added in v0.4.0
type Option func(o *Options)
func WithHeaderMatcher ¶ added in v0.4.0
func WithHeaderMatcher(hm HeaderMatcher) Option
Click to show internal directories.
Click to hide internal directories.