MCPcopy Create free account
hub / github.com/couchbase/cbft / ServeHTTP

Method ServeHTTP

rest_options.go:133–150  ·  view source on GitHub ↗
(
	w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

131}
132
133func (h *ManagerOptionsExt) ServeHTTP(
134 w http.ResponseWriter, req *http.Request) {
135 h.mgrOptions.ServeHTTP(w, req)
136
137 // Update log level if requested.
138 logLevelStr := h.mgr.Options()["logLevel"]
139 if logLevelStr != "" {
140 logLevel, _ := LogLevels[logLevelStr]
141 log.SetLevel(log.LogLevel(logLevel))
142 }
143
144 // Update bleveMaxClauseCount if requested.
145 bleveMaxClauseCountStr := h.mgr.Options()["bleveMaxClauseCount"]
146 if bleveMaxClauseCountStr != "" {
147 bleveMaxClauseCount, _ := strconv.Atoi(bleveMaxClauseCountStr)
148 bleveSearcher.DisjunctionMaxClauseCount = bleveMaxClauseCount
149 }
150}
151
152type ConciseOptions struct {
153 mgr *cbgt.Manager

Callers

nothing calls this directly

Calls 1

ServeHTTPMethod · 0.45

Tested by

no test coverage detected