51 matches across 1 files for func main lang:JavaScript path:test/res.location.js lang:JavaScript
snippet_mode: auto · sorted by relevance
test/res.location.js JAVASCRIPT 51 matches · showing 5 view file →
6 , url = require('node:url');
7
8describe('res', function(){
9 describe('.location(url)', function(){
10 it('should set the header', function(done){
· · ·
9 describe('.location(url)', function(){
10 it('should set the header', function(done){
11 var app = express();
· · ·
10 it('should set the header', function(done){
11 var app = express();
12
· · ·
13 app.use(function(req, res){
14 res.location('http://google.com/').end();
15 });
· · ·
21 })
22
23 it('should preserve trailing slashes when not present', function(done){
24 var app = express();
25
+ 46 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.