const http=require("http")
const fs=require("fs")
http.createServer((req,res)=>{
   const reads=fs.createReadStream("./index.js")
   res.writeHead(200,{"Content-type":"applocation/x-javascript;charset=utf-8"})
   reads.pipe(res)
}).listen(3000,()=>{
    console.log("geyao")
})运行结果











