MCPcopy
hub / github.com/hapijs/hapi / on

Method on

lib/types/request.d.ts:126–126  ·  view source on GitHub ↗

* Access: read only and the public podium interface. * The request.events supports the following events: * * 'peek' - emitted for each chunk of payload data read from the client connection. The event method signature is function(chunk, encoding). * * 'finish' - emitted when the reques

(criteria: 'peek', listener: PeekListener)

Source from the content-addressed store, hash-verified

124 * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-requestevents)
125 */
126 on(criteria: 'peek', listener: PeekListener): this;
127
128 on(criteria: 'finish' | 'disconnect', listener: (data: undefined) => void): this;
129

Callers 15

streams.jsFile · 0.65
transmit.jsFile · 0.65
_debugMethod · 0.65
_dispatchMethod · 0.65
_createListenerMethod · 0.65
_initializeListenerMethod · 0.65
_listenMethod · 0.65
constructorMethod · 0.65
handler.jsFile · 0.65
validation.jsFile · 0.65
payload.jsFile · 0.65
extFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected