MCPcopy Index your code
hub / github.com/kataras/iris / WithTimeout

Function WithTimeout

configuration.go:210–217  ·  view source on GitHub ↗

WithTimeout sets the `Configuration.Timeout` field to the given duration.

(timeoutDur time.Duration, htmlBody ...string)

Source from the content-addressed store, hash-verified

208
209// WithTimeout sets the `Configuration.Timeout` field to the given duration.
210func WithTimeout(timeoutDur time.Duration, htmlBody ...string) Configurator {
211 return func(app *Application) {
212 app.config.Timeout = timeoutDur
213 if len(htmlBody) > 0 {
214 app.config.TimeoutMessage = htmlBody[0]
215 }
216 }
217}
218
219// NonBlocking sets the `Configuration.NonBlocking` field to true.
220func NonBlocking() Configurator {

Callers 1

BuildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…