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:
Alex Rickabaugh
2017-08-28 10:29:35 -07:00
committed by Miško Hevery
parent 1ef558b57c
commit 72c7b6edea
34 changed files with 136 additions and 136 deletions

View File

@ -13,7 +13,7 @@ import {TestRequest} from './request';
/**
* Defines a matcher for requests based on URL, method, or both.
*
* @experimental
* @stable
*/
export interface RequestMatch {
method?: string;
@ -24,7 +24,7 @@ export interface RequestMatch {
* Controller to be injected into tests, that allows for mocking and flushing
* of requests.
*
* @experimental
* @stable
*/
export abstract class HttpTestingController {
/**

View File

@ -25,7 +25,7 @@ import {TestRequest} from './request';
* requests were made and then flush them. In the end, a verify() method asserts
* that no unexpected requests were made.
*
* @experimental
* @stable
*/
@Injectable()
export class HttpClientTestingBackend implements HttpBackend, HttpTestingController {

View File

@ -18,7 +18,7 @@ import {HttpClientTestingBackend} from './backend';
*
* Inject `HttpTestingController` to expect and flush requests in your tests.
*
* @experimental
* @stable
*/
@NgModule({
imports: [

View File

@ -15,7 +15,7 @@ import {Observer} from 'rxjs/Observer';
* This interface allows access to the underlying `HttpRequest`, and allows
* responding with `HttpEvent`s or `HttpErrorResponse`s.
*
* @experimental
* @stable
*/
export class TestRequest {
/**