ServerMonitor
public protocol ServerMonitor
A protocol for implementing a delegate to receive monitoring events from KituraNet.
-
An event fired when a HTTP request has finished being parsed and is about to be passed to the
ServerDelegatefor processing.Declaration
Swift
func started(request: ServerRequest, response: ServerResponse)Parameters
requestThe
ServerRequestclass instance for the request starting.responseThe
ServerResponseclass instance for the request starting. -
An event fired when the processing of a HTTP request has finished.
Declaration
Swift
func finished(request: ServerRequest?, response: ServerResponse)Parameters
requestThe
ServerRequestclass instance for the request that finished.responseThe
ServerResponseclass instance for the request that finished.
View on GitHub
ServerMonitor Protocol Reference