MCPcopy Create free account
hub / github.com/kataras/iris / SetBeforeFlush

Method SetBeforeFlush

context/response_writer.go:57–57  ·  view source on GitHub ↗

SetBeforeFlush registers the unique callback which called exactly before the response is flushed to the client.

(cb func())

Source from the content-addressed store, hash-verified

55
56 // SetBeforeFlush registers the unique callback which called exactly before the response is flushed to the client.
57 SetBeforeFlush(cb func())
58 // GetBeforeFlush returns (not execute) the before flush callback, or nil if not set by SetBeforeFlush.
59 GetBeforeFlush() func()
60 // FlushResponse should be called only once before EndResponse.

Callers 3

CopyToMethod · 0.65
OnCloseMethod · 0.65
OnCloseErrMethod · 0.65

Implementers 1

responseWritercontext/response_writer.go

Calls

no outgoing calls

Tested by

no test coverage detected