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

Method SetContextCreater

server.go:118–126  ·  view source on GitHub ↗

SetContextCreater

(creater ContextCreater)

Source from the content-addressed store, hash-verified

116
117// SetContextCreater
118func (server *HttpServer) SetContextCreater(creater ContextCreater) {
119 server.contextCreater = creater
120 server.pool.context = sync.Pool{
121 New: func() interface{} {
122 return server.contextCreater()
123 },
124 }
125 server.DotApp.Logger().Debug("DotWeb:HttpServer SetContextCreater()", LogTarget_HttpServer)
126}
127
128// ListenAndServe listens on the TCP network address srv.Addr and then
129// calls Serve to handle requests on incoming connections.

Callers

nothing calls this directly

Calls 2

DebugMethod · 0.65
LoggerMethod · 0.45

Tested by

no test coverage detected