W3cubDocs

/Angular

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

Functions

provideHttpClientTesting

Structures

RequestMatch

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

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