Third Attack (Express 4.x API Reference)
Too have a big picture of what is “Express”, taking a look at all the available API, methods and properities maybe a good choice.
express()
Application
Properties
- app.locals
- app.mountpath
Events
- mount
Methods
- app.all()
- app.delete()
- app.disable()
- app.disabled()
- app.enable()
- app.enabled()
- app.engine()
- app.get()
- app.get()
- app.listen()
- app.METHOD()
- app.param()
- app.path()
- app.post()
- app.put()
- app.render()
- app.route()
- app.set()
- app.use()
Request
Properties
- req.app
- req.baseUrl
- req.body
- req.cookies
- req.fresh
- req.hostname
- req.ip
- req.ips
- req.originalUrl
- req.params
- req.path
- req.protocol
- req.query
- req.route
- req.secure
- req.signedCookies
- req.stale
- req.subdomains
- req.xhr
Methods
- req.accepts()
- req.acceptsCharsets()
- req.acceptsEncodings()
- req.acceptsLanguages()
- req.get()
- req.is()
- req.param()
Response
Properties
- res.app
- res.headersSent
- res.locals
Methods
- res.append()
- res.attachment()
- res.cookie()
- res.clearCookie()
- res.download()
- res.end()
- res.format()
- res.get()
- res.json()
- res.jsonp()
- res.links()
- res.location()
- res.redirect()
- res.render()
- res.send()
- res.sendFile()
- res.sendStatus()
- res.set()
- res.status()
- res.type()
- res.vary()
Router
Methods
- router.all()
- router.METHOD()
- router.param()
- router.route()
- router.use()
So the next step to know how to play with Express.js is to understand some popular methods and properiries.