From b813974ef6fcfad0dff816dc42eae5dbe8e84508 Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Wed, 5 Jun 2019 07:43:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E8=AE=A2=E4=BA=86=E9=83=A8?= =?UTF-8?q?=E5=88=86=20API=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/common/http/src/client.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/common/http/src/client.ts b/packages/common/http/src/client.ts index 1ee94c909e..71db4db8b4 100644 --- a/packages/common/http/src/client.ts +++ b/packages/common/http/src/client.ts @@ -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(req: HttpRequest): Observable>;