RegisterServerFile a shortcut for router.RegisterServerFile(routeMethod, path, fileRoot) simple demo:server.RegisterServerFile(RouteMethod_GET, "/src/*", "/var/www", nil) simple demo:server.RegisterServerFile(RouteMethod_GET, "/src/*filepath", "/var/www", []string{".zip", ".rar"})
(routeMethod string, path string, fileRoot string, excludeExtension []string)
| 367 | // simple demo:server.RegisterServerFile(RouteMethod_GET, "/src/*", "/var/www", nil) |
| 368 | // simple demo:server.RegisterServerFile(RouteMethod_GET, "/src/*filepath", "/var/www", []string{".zip", ".rar"}) |
| 369 | func (server *HttpServer) RegisterServerFile(routeMethod string, path string, fileRoot string, excludeExtension []string) RouterNode { |
| 370 | return server.Router().RegisterServerFile(routeMethod, path, fileRoot, excludeExtension) |
| 371 | } |
| 372 | |
| 373 | // HiJack is a shortcut for router.HiJack(path, handle) |
| 374 | func (server *HttpServer) HiJack(path string, handle HttpHandle) { |
nothing calls this directly
no test coverage detected