Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ writeNotFound
Function
writeNotFound
packages/zone.js/simple-server.js:16–19 ·
view source on GitHub ↗
(res)
Source
from the content-addressed store, hash-verified
14
const
localFolder = __dirname;
15
16
function
writeNotFound(res) {
17
res.writeHead(404, {
'Content-Type'
:
'text/html'
});
18
res.end(
'<h1>404, Not Found!</h1>'
);
19
}
20
21
function
requestHandler(req, res) {
22
if
(req.url ===
'/close'
) {
Callers
1
requestHandler
Function · 0.85
Calls
1
end
Method · 0.65
Tested by
no test coverage detected