填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

@angular/common/http/testing

Supplies a testing module for the Angular HTTP subsystem.

入口点的导出

Entry point exports

NgModules

HttpClientTestingModule

提供配置 HttpClientTestingBackend 作为 HttpBackend 所使用 HttpClient

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

为基于 URL 和/或 method 的请求定义匹配器。

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