{ "id": "api/common/http/testing", "title": "@angular/common/http/testing", "contents": "\n\n
\n
\n
\n \n API > @angular/common\n
\n \n
\n \n
\n

@angular/common/http/testinglink

\n \n \n \n \n
\n\n \n\n
\n

Supplies a testing module for the Angular HTTP subsystem.

\n\n \n\n \n\n\n \n\n

Entry point exportslink

\n \n \n \n \n \n
\n

NgModuleslink

\n \n \n \n \n \n \n \n
HttpClientTestingModule\n \n

Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.

\n\n
\n
\n \n\n \n \n \n
\n

Classeslink

\n \n \n \n \n \n \n \n \n \n \n \n \n
HttpTestingController\n \n

Controller to be injected into tests, that allows for mocking and flushing\nof requests.

\n\n
TestRequest\n \n

A mock requests that was received and is ready to be answered.

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Structureslink

\n \n \n \n \n \n \n \n
RequestMatch\n \n

Defines a matcher for requests based on URL, method, or both.

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n\n
\n
\n\n\n" }