W3cubDocs

/Angular 12

@angular/common/http/testing

entry-point

Supplies a testing module for the Angular HTTP subsystem.

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.

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/common/http/testing