docs: add details to HttpUrlEncodingCodec API description (#28507)
PR Close #28507
This commit is contained in:
parent
2b836c81a2
commit
416b0d29b9
|
@ -14,16 +14,19 @@
|
||||||
* @publicApi
|
* @publicApi
|
||||||
**/
|
**/
|
||||||
export interface HttpParameterCodec {
|
export interface HttpParameterCodec {
|
||||||
encodeKey(key: string): string;
|
encodeKey(key: string):string;
|
||||||
encodeValue(value: string): string;
|
encodeValue(value: string):string;
|
||||||
|
|
||||||
decodeKey(key: string): string;
|
decodeKey(key: string):string;
|
||||||
decodeValue(value: string): string;
|
decodeValue(value: string):string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A `HttpParameterCodec` that uses `encodeURIComponent` and `decodeURIComponent` to
|
* A `HttpParameterCodec` that uses `encodeURIComponent` and `decodeURIComponent` to
|
||||||
* serialize and parse URL parameter keys and values.
|
* serialize and parse URL parameter keys and values. If URL query parameters are
|
||||||
|
* passed without encoding, they might be misinterpreted at the receiving end. Use the
|
||||||
|
* `HttpParameterCodec` to encode the query-string values. The same class can be used to decode the
|
||||||
|
* encoded query-string values.
|
||||||
*
|
*
|
||||||
* @publicApi
|
* @publicApi
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue