feat: deprecate @angular/http in favor of @angular/common/http (#18906)
As of 5.0, @angular/http is deprecated. @angular/common/http will be the official HTTP API in Angular going forward. PR Close #18906
This commit is contained in:

committed by
Miško Hevery

parent
1ef558b57c
commit
72c7b6edea
@ -11,7 +11,7 @@
|
||||
*
|
||||
* Used by `HttpParams`.
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
**/
|
||||
export interface HttpParameterCodec {
|
||||
encodeKey(key: string): string;
|
||||
@ -25,7 +25,7 @@ export interface HttpParameterCodec {
|
||||
* A `HttpParameterCodec` that uses `encodeURIComponent` and `decodeURIComponent` to
|
||||
* serialize and parse URL parameter keys and values.
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
export class HttpUrlEncodingCodec implements HttpParameterCodec {
|
||||
encodeKey(k: string): string { return standardEncoding(k); }
|
||||
@ -79,7 +79,7 @@ interface Update {
|
||||
*
|
||||
* This class is immutable - all mutation operations return a new instance.
|
||||
*
|
||||
* @experimental
|
||||
* @stable
|
||||
*/
|
||||
export class HttpParams {
|
||||
private map: Map<string, string[]>|null;
|
||||
|
Reference in New Issue
Block a user