blob: c2e12c608fec5dc8b632b86a4023c6c5924778cf (
plain)
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
|
var http = require('http')
var PORT = 4567
var server = http.createServer(function (req, res){
res.end('It Works!! Path Hit: ' + req.url)
console.log(req.headers)
})
server.listen(PORT, function(){
console.log("Proxy listening on: http://localhost:%s", PORT)
})
/*
headers: {
"x-yoox-appname": auth.appname,
"x-yoox-account-token": auth.access_token,
"x-yoox-device": auth.device,
"x-yoox-api-key": auth.apikey,
"x-yoox-cart-token": cart.token,
},
proxy content body
proxy method
proxy query string
*/
|