0.0.0 • Published 5 years ago

@routes/client v0.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@routes/client npm.io

💁‍♂️ Display information about the client making the request

Use the query string to request for specific keys

| GET /info?hostname&url&query&headers.accept&headers.user-agent | - | npm.io

Available keys to get are

  • body
  • cookies
  • signedCookies
  • params
  • query
  • originalUrl
  • baseUrl
  • url
  • protocol
  • secure
  • ip
  • ips
  • subdomains
  • path
  • hostname
  • fresh
  • stale
  • xhr
  • headers.*

The headers sub keys have been fattened (headers.x) and may be acquired by asking for headers, headers.* or specifically: headers.user-agent and so forth.