Values maps a string key to a list of values. It is typically used for query parameters and form values. Unlike in the http.Header map, the keys in a Values map are case-sensitive.

Hierarchy

Methods

Methods

  • Add adds the value to key. It appends to any existing values associated with key.

    Parameters

    • key: string
    • value: string

    Returns void

  • Del deletes the values associated with key.

    Parameters

    • key: string

    Returns void

  • Encode encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.

    Returns string

  • Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.

    Parameters

    • key: string

    Returns string

  • Has checks whether a given key is set.

    Parameters

    • key: string

    Returns boolean

  • Set sets the key to value. It replaces any existing values.

    Parameters

    • key: string
    • value: string

    Returns void

Generated using TypeDoc