Help Angular by taking a 1 minute survey!Go to surveyHome

@angular/common/http/testing

Entry point exports

NgModules

HttpClientTestingModule

Configures HttpClientTestingBackend as the HttpBackend used by HttpClient.

Classes

HttpTestingController

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

TestRequest

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

Structures

RequestMatch

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