Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FastifyDeviceDetector

Device detector which extracts device from User-Agent header by using device-detector-js dependency.
Device is stored in the Fastify request object under DEVICE_SYM symbol.

Hierarchy

  • FastifyDeviceDetector

Implements

Constructors

Methods

Constructors

constructor

Methods

detect

  • detect(req: AdaptedFastifyRequest<RouteGenericInterface, Server, IncomingMessage>): undefined | null | DeviceDetectorResult
  • Parameters

    Returns undefined | null | DeviceDetectorResult