MCPcopy Create free account
hub / github.com/eth-easl/dirigent / NewMultiplexer

Function NewMultiplexer

workload/http_workload.go:136–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134}
135
136func NewMultiplexer() *Multiplexer {
137 multiplexer := &Multiplexer{
138 handlers: make(map[string]func(w http.ResponseWriter, r *http.Request)),
139 }
140 multiplexer.init()
141 return multiplexer
142}
143
144func (mux *Multiplexer) init() {
145 handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 1

StartHTTPServerFunction · 0.85

Calls 1

initMethod · 0.95

Tested by

no test coverage detected