MCPcopy
hub / github.com/fatedier/frp / WithHandler

Function WithHandler

test/e2e/mock/server/httpserver/server.go:48–53  ·  view source on GitHub ↗
(h http.Handler)

Source from the content-addressed store, hash-verified

46}
47
48func WithHandler(h http.Handler) Option {
49 return func(s *Server) *Server {
50 s.handler = h
51 return s
52 }
53}
54
55func WithResponse(resp []byte) Option {
56 return func(s *Server) *Server {

Callers 9

NewMockServersFunction · 0.92
group.goFile · 0.92
real_ip.goFile · 0.92
http.goFile · 0.92
NewHTTPPluginServerFunction · 0.92
client.goFile · 0.92
group.goFile · 0.92
real_ip.goFile · 0.92
http.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…