Skip to content

Commit cb25f2a

Browse files
committed
JS: add docstring with source examples
1 parent 1c100bb commit cb25f2a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

javascript/ql/src/semmle/javascript/frameworks/NodeJSLib.qll

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,18 @@ module NodeJSLib {
10631063
}
10641064
}
10651065

1066+
/**
1067+
* An HTTP request event handler parameter as an EventEmitter, for
1068+
* example the function `emitter` in either of the following:
1069+
*
1070+
* ```
1071+
* http.request(x, emitter => {...})
1072+
* ```
1073+
*
1074+
* ```
1075+
* http.request(...).on(y, emitter => { ...})
1076+
* ```
1077+
*/
10661078
private class ClientRequestEventEmitter extends NodeJSEventEmitter {
10671079
ClientRequestEventEmitter() {
10681080
exists(ClientRequestHandler handler |

0 commit comments

Comments
 (0)