Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FastlyParams

Implements

  • IFastlyParams

Index

Constructors

constructor

  • new FastlyParams(params: Map<string, string | undefined>, req: Request, res: IMutableResponse): FastlyParams

Properties

Private cachedQuality

cachedQuality: number | undefined | symbol = UNSET

log

log: Logger

Private raw

raw: ParamMap

req

req: Request

res

res: IMutableResponse

Private rgbRE

rgbRE: RegExp = /^(?:[0-9a-fA-F]{3}){1,2}$/

Private warnings

warnings: Warning[] = []

Accessors

quality

  • get quality(): number | undefined

Methods

get

  • get(param: Param): Param

getWarnings

  • getWarnings(): Warning[]

has

  • has(param: Param): boolean

toColor

  • toColor(name: Param): Color

toCssBox

  • toCssBox(name: Param): ExtendOptions

toNumbers

  • toNumbers(names: Param[]): NumericParams

toRegion

  • toRegion(name: Param): Partial<Region>

toTaggedValues

  • toTaggedValues(name: Param, positional: string[], named: string[]): {}
  • Parameters

    • name: Param
    • positional: string[]
    • named: string[]

    Returns {}

    • [key: string]: string | null

warn

  • warn(type: WarnType, param: Param, msg?: undefined | string): void
  • Parameters

    • type: WarnType
    • param: Param
    • Optional msg: undefined | string

    Returns void

Private warnFail

  • warnFail(type: Warning["type"], name: Param, msg: string): void

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property

Generated using TypeDoc