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
ServerDelegate
for processing.Declaration
Swift
func started(request: ServerRequest, response: ServerResponse)
Parameters
request
The
ServerRequest
class instance for the request starting.response
The
ServerResponse
class 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
request
The
ServerRequest
class instance for the request that finished.response
The
ServerResponse
class instance for the request that finished.