fix: 修订了部分 API 文档
This commit is contained in:
parent
9d1a89a77f
commit
b813974ef6
@ -87,9 +87,6 @@ export type HttpObserve = 'body' | 'events' | 'response';
|
||||
* .pipe(catchError(this.handleError('patchHero')));
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* `HttpClient` 是一个可供注入的类,具有一些用来执行 HTTP 请求的方法。
|
||||
* 每个请求方法都有多重签名,并根据签名返回不同的数据类型(主要取决于 `observe` 和 `responseType` 的值)。
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
@ -100,9 +97,11 @@ export class HttpClient {
|
||||
/**
|
||||
* Sends an `HTTPRequest` and returns a stream of `HTTPEvents`.
|
||||
*
|
||||
* 发送指定的 `HttpRequest` 并返回一个由 `HTTPEvents` 组成的流。
|
||||
*
|
||||
* @return An `Observable` of the response, with the response body as a stream of `HTTPEvents`.
|
||||
*
|
||||
* 发送指定的 `HttpRequest` 并返回一个由 `HTTPEvents` 组成的流。
|
||||
* 一个由响应组成的 `Observable`,其响应体是 `HTTPEvents` 组成的流。
|
||||
*/
|
||||
request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user