Get the latest tech news
Koa – Next generation web framework for Node.js
Request A Koa Request object is an abstraction on top of node's vanilla request object, providing additional functionality that is useful for every day HTTP server development. API Request header object.
If host is IPv6, Koa delegates parsing to WHATWG URL API, Note This may impact performance. When X-Forwarded-For is present and app.proxy is enabled an array of these ips is returned, ordered from upstream -> downstream. If you know exactly how many reverse proxies are in front of the server, you can avoid reading the user's forged request header by configuring app.maxIpsCount:
Or read this on Hacker News