forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponseExprs.js
More file actions
42 lines (37 loc) · 809 Bytes
/
Copy pathresponseExprs.js
File metadata and controls
42 lines (37 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var express = require('express');
var app = express();
app.get('/some/path', function(req, res1) {
res1
});
app.get('/some/path', function(req, res2, next) {
res2;
});
app.get('/some/path', function(error, req, res3, next) {
res3;
});
app.get('/some/path', function(req, res4, next, unknown, unknown) {
res4;
});
app.post('/some/other/path', function(req, res) {
req.clearCookie();
res.append();
res.attachment();
res.clearCookie();
res.contentType();
res.cookie();
res.format();
res.header();
res.links();
res.location();
res.send();
res.sendStatus();
res.set();
res.status();
res.type();
res.vary();
res.status().send();
f(res.append()).append();
function f(resArg) {
return resArg.append();
}
});