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

Method SetEnabledGzip

server.go:449–452  ·  view source on GitHub ↗

SetEnabledGzip set whether to enable gzip, default is false

(isEnabled bool)

Source from the content-addressed store, hash-verified

447
448// SetEnabledGzip set whether to enable gzip, default is false
449func (server *HttpServer) SetEnabledGzip(isEnabled bool) {
450 server.ServerConfig().EnabledGzip = isEnabled
451 server.Logger().Debug("DotWeb:HttpServer SetEnabledGzip ["+strconv.FormatBool(isEnabled)+"]", LogTarget_HttpServer)
452}
453
454// SetEnabledBindUseJsonTag set whethr to enable json tab on Bind, default is false
455func (server *HttpServer) SetEnabledBindUseJsonTag(isEnabled bool) {

Callers

nothing calls this directly

Calls 3

ServerConfigMethod · 0.95
LoggerMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected