MCPcopy Create free account
hub / github.com/devfeel/dotweb / HiJack

Method HiJack

server.go:374–376  ·  view source on GitHub ↗

HiJack is a shortcut for router.HiJack(path, handle)

(path string, handle HttpHandle)

Source from the content-addressed store, hash-verified

372
373// HiJack is a shortcut for router.HiJack(path, handle)
374func (server *HttpServer) HiJack(path string, handle HttpHandle) {
375 server.Router().HiJack(path, handle)
376}
377
378// WebSocket is a shortcut for router.WebSocket(path, handle)
379func (server *HttpServer) WebSocket(path string, handle HttpHandle) {

Callers

nothing calls this directly

Calls 2

RouterMethod · 0.95
HiJackMethod · 0.65

Tested by

no test coverage detected