src/app/shared/support/encoder.utils.ts
Custom HTTP Parameter Encoder
Methods |
decodeKey | ||||||||
decodeKey(key: string)
|
||||||||
Defined in src/app/shared/support/encoder.utils.ts:16
|
||||||||
Parameters :
Returns :
string
|
decodeValue | ||||||||
decodeValue(value: string)
|
||||||||
Defined in src/app/shared/support/encoder.utils.ts:20
|
||||||||
Parameters :
Returns :
string
|
encodeKey | ||||||||
encodeKey(key: string)
|
||||||||
Defined in src/app/shared/support/encoder.utils.ts:8
|
||||||||
Parameters :
Returns :
string
|
encodeValue | ||||||||
encodeValue(value: string)
|
||||||||
Defined in src/app/shared/support/encoder.utils.ts:12
|
||||||||
Parameters :
Returns :
string
|
import { HttpParameterCodec } from '@angular/common/http';
/**
* Custom HTTP Parameter Encoder
*/
export class DataflowEncoder implements HttpParameterCodec {
encodeKey(key: string): string {
return encodeURIComponent(key);
}
encodeValue(value: string): string {
return encodeURIComponent(value);
}
decodeKey(key: string): string {
return decodeURIComponent(key);
}
decodeValue(value: string): string {
return decodeURIComponent(value);
}
}