跳转至

$device_type

The $device_type variable classifies the primary type of device making the HTTP request.

Type

string

Possible values

  • mobile
  • tablet
  • desktop
  • tv
  • console
  • car
  • wearable
  • camera
  • peripheral
  • bot

Example

location / {
    proxy_set_header X-Device-Type $device_type;
    proxy_pass http://backend;
}