(path string, option FileHandlerOption)
| 466 | } |
| 467 | |
| 468 | func (c *Client) RegisterFileHandler(path string, option FileHandlerOption) { |
| 469 | c.UrlHandlerMux.HandleFunc(path, func(w http.ResponseWriter, r *http.Request) { |
| 470 | if err := ServeFileOption(w, r, option); err != nil { |
| 471 | http.Error(w, err.Error(), http.StatusInternalServerError) |
| 472 | } |
| 473 | }) |
| 474 | } |
nothing calls this directly
no test coverage detected