Skip to content

Latest commit

 

History

History
 
 

client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@routes/client

💁‍♂️ 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

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.