Options
All
  • Public
  • Public/Protected
  • All
Menu

Provide location information extracted from the request headers.

Hierarchy

  • Location

Index

Constructors

constructor

  • Constructs a new Location from the given list of headers.

    Parameters

    • headers: Headers

      The request headers to extract location information from.

    Returns Location

Accessors

city

  • LocationData included in the request headers for the city. The code for a city is always undefined.

    Returns undefined | LocationData

country

  • LocationData included in the request headers for the country of origin.

    Returns undefined | LocationData

subdivision

  • LocationData included in the request headers for the subdivision area of origin.

    Returns undefined | LocationData

Generated using TypeDoc