features.go 768 B

12345678910111213141516
  1. package clientfeatures
  2. // Features holds information about features extracted from HTTP request
  3. type Features struct {
  4. PreferWebP bool // Whether to prefer WebP format when resulting image format is unknown
  5. EnforceWebP bool // Whether to enforce WebP format even if resulting image format is set
  6. PreferAvif bool // Whether to prefer AVIF format when resulting image format is unknown
  7. EnforceAvif bool // Whether to enforce AVIF format even if resulting image format is set
  8. PreferJxl bool // Whether to prefer JXL format when resulting image format is unknown
  9. EnforceJxl bool // Whether to enforce JXL format even if resulting image format is set
  10. ClientHintsWidth int // Client hint width
  11. ClientHintsDPR float64 // Client hint device pixel ratio
  12. }