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

Method once

lib/types/request.d.ts:138–138  ·  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

136 * [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-requestevents)
137 */
138 once(criteria: 'peek', listener: PeekListener): this;
139 once(criteria: 'peek'): Promise<Parameters<PeekListener>>;
140
141 once(criteria: 'finish' | 'disconnect', listener: (data: undefined) => void): this;

Callers 15

_listenMethod · 0.65
_createListenerMethod · 0.65
_initializeListenerMethod · 0.65
_listenMethod · 0.65
handler.jsFile · 0.65
payload.jsFile · 0.65
extFunction · 0.65
requestFunction · 0.65
onRequestFunction · 0.65
autoValueFunction · 0.65
transmit.jsFile · 0.65
preResponseFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected