MCPcopy Create free account
hub / github.com/M1r0ku/frp-Modify / WithHandler

Function WithHandler

frp-dev/test/e2e/mock/server/httpserver/server.go:55–60  ·  view source on GitHub ↗
(h http.Handler)

Source from the content-addressed store, hash-verified

53}
54
55func WithHandler(h http.Handler) Option {
56 return func(s *Server) *Server {
57 s.handler = h
58 return s
59 }
60}
61
62func WithResponse(resp []byte) Option {
63 return func(s *Server) *Server {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected