W3cubDocs

/Angular

HttpParameterCodec

interface

A codec for encoding and decoding parameters in URLs.

See more...

interface HttpParameterCodec {
  encodeKey(key: string): string
  encodeValue(value: string): string
  decodeKey(key: string): string
  decodeValue(value: string): string
}

Class implementations

Description

Used by HttpParams.

Methods

encodeKey(key: string): string

Parameters
key string
Returns

string

encodeValue(value: string): string

Parameters
value string
Returns

string

decodeKey(key: string): string

Parameters
key string
Returns

string

decodeValue(value: string): string

Parameters
value string
Returns

string

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/common/http/HttpParameterCodec