This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

@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.