◐ Shell
clean mode source ↗

HttpUrlEncodingCodec • Angular

Encodes a key name for a URL parameter or query-string.

@paramkeystring

The key name.

@returnsstring

The encoded key name.

Encodes the value of a URL parameter or query-string.

@paramvaluestring

The value.

@returnsstring

The encoded value.

Decodes an encoded URL parameter or query-string key.

@paramkeystring

The encoded key name.

@returnsstring

The decoded key name.

Decodes an encoded URL parameter or query-string value.

@paramvaluestring

The encoded value.

@returnsstring

The decoded value.

Description

Provides encoding and decoding of URL parameter and query-string values.

Serializes and parses URL parameter keys and values to encode and decode them. If you pass URL query parameters without encoding, the query parameters can be misinterpreted at the receiving end.