A, req is the request object, req of common attributes and methods:
- req.url
- req.method
Two, res is the request object, properties and methods used in res:
- res.setHeader(name, value)
- res.end('message')
A, req is the request object, req of common attributes and methods:
Two, res is the request object, properties and methods used in res: