mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: add docstring with source examples
This commit is contained in:
@@ -1063,6 +1063,18 @@ module NodeJSLib {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* An HTTP request event handler parameter as an EventEmitter, for
|
||||
* example the function `emitter` in either of the following:
|
||||
*
|
||||
* ```
|
||||
* http.request(x, emitter => {...})
|
||||
* ```
|
||||
*
|
||||
* ```
|
||||
* http.request(...).on(y, emitter => { ...})
|
||||
* ```
|
||||
*/
|
||||
private class ClientRequestEventEmitter extends NodeJSEventEmitter {
|
||||
ClientRequestEventEmitter() {
|
||||
exists(ClientRequestHandler handler |
|
||||
|
||||
Reference in New Issue
Block a user