
nodejs 示例代码
1 2 3 4 5 6 7 8 9 10 11 12
| const headers = { 'Server-Timing': ` lb=18; "Load Balancer", server-3=104; "Server #3 Startup", db-read=187; "Database Read", aws-download=317; "AWS Content Download", db-write=218; "Database Write", templating=48; "Templating plugin" `.replace(/\n/g, '') };
response.writeHead(200, headers);
|
补充
后台这里应该有对应的中间件实现,有兴趣的老铁可以自行搜索下
v1.5.2