diff --git a/aio/content/translations/cn/api-plan.md b/aio/content/translations/cn/api-plan.md index be2ffb44b4..0b8544f5d8 100644 --- a/aio/content/translations/cn/api-plan.md +++ b/aio/content/translations/cn/api-plan.md @@ -107,14 +107,7 @@ core/testing/async | 518 | 0.16 找到源码,并且把对应的 tsdoc 内容翻译了。 -注意:tsdoc 中的第一行是标题行,编译时和其它内容不在一起,所以,tsdoc 注释中的第一行必须使用 - -``` -english -
中文
- -``` -的形式进行翻译,后面的描述行则无所谓,可以按照以前的空行分隔的方式进行翻译。 +中文放在英文之后,并且要隔一个空行。 ## 翻译内容 diff --git a/aio/tools/transforms/angular-api-package/processors/splitDescription.js b/aio/tools/transforms/angular-api-package/processors/splitDescription.js index 2d6de6a9fc..74de884425 100644 --- a/aio/tools/transforms/angular-api-package/processors/splitDescription.js +++ b/aio/tools/transforms/angular-api-package/processors/splitDescription.js @@ -12,7 +12,7 @@ module.exports = function splitDescription() { docs.forEach(doc => { if (this.docTypes.indexOf(doc.docType) !== -1 && doc.description !== undefined) { const description = doc.description.trim(); - const endOfParagraph = description.search(/\n\s*\n/); + const endOfParagraph = description.search(/\n\s*\n+(?!.*[\u4e00-\u9fa5])/); // 从第一个非汉字行开始拆分 if (endOfParagraph === -1) { doc.shortDescription = description; doc.description = ''; diff --git a/packages/common/http/src/client.ts b/packages/common/http/src/client.ts index 177b0a61d6..379552c0a1 100644 --- a/packages/common/http/src/client.ts +++ b/packages/common/http/src/client.ts @@ -46,7 +46,8 @@ export type HttpObserve = 'body' | 'events' | 'response'; /** * Perform HTTP requests. - *执行 HTTP 请求。
+ * + * 执行 HTTP 请求。 * * `HttpClient` is available as an injectable class, with methods to perform HTTP requests. * Each request method has multiple signatures, and the return type varies according to which @@ -62,16 +63,19 @@ export class HttpClient { /** * Send the given `HttpRequest` and return a stream of `HttpEvents`. - *发送指定的 `HttpRequest` 并返回一个由 `HTTPEvents` 组成的流。
+ * + * 发送指定的 `HttpRequest` 并返回一个由 `HTTPEvents` 组成的流。 */ request构造一个请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。
+ * + * 构造一个请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。 * * @return an `Observable` of the body as an `ArrayBuffer`. - *一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。 */ request(method: string, url: string, options: { body?: any, @@ -84,10 +88,12 @@ export class HttpClient { /** * Construct a request which interprets the body as a `Blob` and returns it. - *构造一个请求,这个请求会把 body 解释为 `Blob` ,并返回它。
+ * + * 构造一个请求,这个请求会把 body 解释为 `Blob` ,并返回它。 * * @return an `Observable` of the body as a `Blob`. - *一个由 `Blob` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Blob` 型的 body 组成的 `Observable` 对象。 */ request(method: string, url: string, options: { body?: any, @@ -100,10 +106,12 @@ export class HttpClient { /** * Construct a request which interprets the body as text and returns it. - *构造一个请求,这个请求会把 body 解释为文本,并返回它。
+ * + * 构造一个请求,这个请求会把 body 解释为文本,并返回它。 * * @return an `Observable` of the body as a `string`. - *一个由 `string` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `string` 型的 body 组成的 `Observable` 对象。 */ request(method: string, url: string, options: { body?: any, @@ -116,10 +124,12 @@ export class HttpClient { /** * Construct a request which interprets the body as an `ArrayBuffer` and returns the full event stream. - *构造一个请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。
+ * + * 构造一个请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -131,10 +141,12 @@ export class HttpClient { /** * Construct a request which interprets the body as an `Blob` and returns the full event stream. - *构造一个请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。
+ * + * 构造一个请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -147,10 +159,12 @@ export class HttpClient { /** * Construct a request which interprets the body as text and returns the full event stream. - *构造一个请求,这个请求会把 body 解释为文本,并返回完整的事件流。
+ * + * 构造一个请求,这个请求会把 body 解释为文本,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -163,10 +177,12 @@ export class HttpClient { /** * Construct a request which interprets the body as JSON and returns the full event stream. - *构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -180,10 +196,12 @@ export class HttpClient { /** * Construct a request which interprets the body as JSON and returns the full event stream. - *构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `R`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `R` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `R` 型的。 */ request构造一个请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。
+ * + * 构造一个请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -213,10 +233,12 @@ export class HttpClient { /** * Construct a request which interprets the body as a `Blob` and returns the full response. - *构造一个请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。
+ * + * 构造一个请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -229,10 +251,12 @@ export class HttpClient { /** * Construct a request which interprets the body as text and returns the full response. - *构造一个请求,这个请求会把 body 解释为文本,并返回完整的响应体。
+ * + * 构造一个请求,这个请求会把 body 解释为文本,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -245,10 +269,12 @@ export class HttpClient { /** * Construct a request which interprets the body as JSON and returns the full response. - *构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。 */ request(method: string, url: string, options: { body?: any, @@ -262,10 +288,12 @@ export class HttpClient { /** * Construct a request which interprets the body as JSON and returns the full response. - *构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `R` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `R` 型的。 */ request构造一个请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。 */ request(method: string, url: string, options?: { body?: any, @@ -296,10 +326,12 @@ export class HttpClient { /** * Construct a request which interprets the body as JSON and returns it. - *构造一个请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `R`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `R` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `R` 型的。 */ request以某种方式构造请求,其响应类型和所请求的 `Observable` 都是无法静态获知的。
+ * + * 以某种方式构造请求,其响应类型和所请求的 `Observable` 都是无法静态获知的。 * * @return an `Observable` of whatever was requested, typed to `any`. - *所请求的任意 `Observable`,其类型是 `any`。
+ * + * 所请求的任意 `Observable`,其类型是 `any`。 */ request(method: string, url: string, options?: { body?: any, @@ -333,7 +367,8 @@ export class HttpClient { * Constructs an `Observable` for a particular HTTP request that, when subscribed, * fires the request through the chain of registered interceptors and on to the * server. - *为一个特定的 HTTP 请求构造一个 `Observable`,当它被订阅时,就触发该请求,经过一系列已注册的拦截器的处理之后,最终发给服务器。
+ * + * 为一个特定的 HTTP 请求构造一个 `Observable`,当它被订阅时,就触发该请求,经过一系列已注册的拦截器的处理之后,最终发给服务器。 * * This method can be called in one of two ways. Either an `HttpRequest` * instance can be passed directly as the only parameter, or a method can be @@ -494,10 +529,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns it. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。 * * @return an `Observable` of the body as an `ArrayBuffer`. - *一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -510,10 +547,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as a `Blob` and returns it. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 `Blob` ,并返回它。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 `Blob` ,并返回它。 * * @return an `Observable` of the body as a `Blob`. - *一个由 `Blob` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Blob` 型的 body 组成的 `Observable` 对象。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -525,10 +564,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as text and returns it. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为文本,并返回它。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为文本,并返回它。 * * @return an `Observable` of the body as a `string`. - *一个由 `string` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `string` 型的 body 组成的 `Observable` 对象。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -540,10 +581,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as an `ArrayBuffer` and returns the full event stream. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -555,10 +598,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as a `Blob` and returns the full event stream. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -570,10 +615,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as text and returns the full event stream. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为文本,并返回完整的事件流。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为文本,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -585,10 +632,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as JSON and returns the full event stream. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -601,10 +650,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as JSON and returns the full event stream. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `T` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `T` 型的。 */ delete构造一个 `DELETE` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -632,10 +685,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as a `Blob` and returns the full response. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -647,10 +702,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as text and returns the full response. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为文本,并返回完整的响应体。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为文本,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -662,10 +719,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as JSON and returns the full response. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -678,10 +737,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as JSON and returns the full response. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `T` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `T` 型的。 */ delete构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the body as an `Object`. - *一个由 `Object` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Object` 型的 body 组成的 `Observable` 对象。 */ delete (url: string, options?: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -710,10 +773,12 @@ export class HttpClient { /** * Construct a DELETE request which interprets the body as JSON and returns it. - *构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个 `DELETE` 请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the body as type `T`. - *一个由 `T` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `T` 型的 body 组成的 `Observable` 对象。 */ delete构造一个 `Observable`,当订阅它时,将导致服务器执行一个配置好的 `DELETE` 请求。 - * 关于 `delete()` 返回类型的详细信息取决于所提供的选项,参见它的各个重载形式。
+ * + * 构造一个 `Observable`,当订阅它时,将导致服务器执行一个配置好的 `DELETE` 请求。 + * 关于 `delete()` 返回类型的详细信息取决于所提供的选项,参见它的各个重载形式。 */ delete (url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -745,10 +811,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as an `ArrayBuffer` and returns it. - *构造一个 `GET` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。 * * @return an `Observable` of the body as an `ArrayBuffer`. - *一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -760,10 +828,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as a `Blob` and returns it. - *构造一个 `GET` 请求,这个请求会把 body 解释为 `Blob` ,并返回它。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 `Blob` ,并返回它。 * * @return an `Observable` of the body as a `Blob`. - *一个由 `Blob` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Blob` 型的 body 组成的 `Observable` 对象。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -775,10 +845,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as text and returns it. - *构造一个 `GET` 请求,这个请求会把 body 解释为文本,并返回它。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为文本,并返回它。 * * @return an `Observable` of the body as a `string`. - *一个由 `string` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `string` 型的 body 组成的 `Observable` 对象。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -790,10 +862,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as an `ArrayBuffer` and returns the full event stream. - *构造一个 `GET` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -805,10 +879,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as a `Blob` and returns the full event stream. - *构造一个 `GET` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -820,10 +896,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as text and returns the full event stream. - *构造一个 `GET` 请求,这个请求会把 body 解释为文本,并返回完整的事件流。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为文本,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -835,10 +913,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as JSON and returns the full event stream. - *构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -851,10 +931,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as JSON and returns the full event stream. - *构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `T` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `T` 型的。 */ get构造一个 `GET` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -882,10 +966,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as a `Blob` and returns the full response. - *构造一个 `GET` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -897,10 +983,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as text and returns the full response. - *构造一个 `GET` 请求,这个请求会把 body 解释为文本,并返回完整的响应体。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为文本,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -912,10 +1000,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as JSON and returns the full response. - *构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -928,10 +1018,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as JSON and returns the full response. - *构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `T` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `T` 型的。 */ get构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the body as an `Object`. - *一个由 `Object` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Object` 型的 body 组成的 `Observable` 对象。 */ get(url: string, options?: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -960,10 +1054,12 @@ export class HttpClient { /** * Construct a GET request which interprets the body as JSON and returns it. - *构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个 `GET` 请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the body as type `T`. - *一个由 `T` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `T` 型的 body 组成的 `Observable` 对象。 */ get构造一个 `Observable`,当订阅它时,将导致服务器执行一个配置好的 `GET` 请求。 - * 关于 `get()` 返回类型的详细信息取决于所提供的选项,参见它的各个重载形式。
+ * + * 构造一个 `Observable`,当订阅它时,将导致服务器执行一个配置好的 `GET` 请求。 + * 关于 `get()` 返回类型的详细信息取决于所提供的选项,参见它的各个重载形式。 */ get(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -995,10 +1092,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns it. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回它。 * * @return an `Observable` of the body as an `ArrayBuffer`. - *一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `ArrayBuffer` 型的 body 组成的 `Observable` 对象。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1009,10 +1108,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as a `Blob` and returns it. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 `Blob` ,并返回它。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 `Blob` ,并返回它。 * * @return an `Observable` of the body as a `Blob`. - *一个由 `Blob` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Blob` 型的 body 组成的 `Observable` 对象。 */ }): Observable构造一个 `HEAD` 请求,这个请求会把 body 解释为文本,并返回它。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为文本,并返回它。 * * @return an `Observable` of the body as a `string`. - *一个由 `string` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `string` 型的 body 组成的 `Observable` 对象。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1040,10 +1143,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as an `ArrayBuffer` and returns the full event stream. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `ArrayBuffer`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `ArrayBuffer` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1055,10 +1160,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as a `Blob` and returns the full event stream. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Blob`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Blob` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1070,10 +1177,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as text and returns the full event stream. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为文本,并返回完整的事件流。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为文本,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `string`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `string` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1085,10 +1194,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as JSON and returns the full event stream. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `Object`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `Object` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1101,10 +1212,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as JSON and returns the full event stream. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的事件流。 * * @return an `Observable` of all `HttpEvent`s for the request, with a body type of `T`. - *一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `T` 型的。
+ * + * 一个由该请求的所有 `HttpEvents` 组成的 `Observable` 对象,事件的 body 是 `T` 型的。 */ head构造一个 `HEAD` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 `ArrayBuffer` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `ArrayBuffer`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `ArrayBuffer` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1132,10 +1247,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as a `Blob` and returns the full response. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 `Blob` ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Blob`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Blob` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1147,10 +1264,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as text and returns the full response. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为文本,并返回完整的响应体。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为文本,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `string`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `string` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1162,10 +1281,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as JSON and returns the full response. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `Object`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `Object` 型的。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1178,10 +1299,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as JSON and returns the full response. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回完整的响应体。 * * @return an `Observable` of the `HttpResponse` for the request, with a body type of `T`. - *一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `T` 型的。
+ * + * 一个由该请求的 `HttpResponse` 组成的 `Observable` 对象,其 body 是 `T` 型的。 */ head构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the body as an `Object`. - *一个由 `Object` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `Object` 型的 body 组成的 `Observable` 对象。 */ head(url: string, options?: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1210,10 +1335,12 @@ export class HttpClient { /** * Construct a HEAD request which interprets the body as JSON and returns it. - *构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回它。
+ * + * 构造一个 `HEAD` 请求,这个请求会把 body 解释为 JSON ,并返回它。 * * @return an `Observable` of the body as type `T`. - *一个由 `T` 型的 body 组成的 `Observable` 对象。
+ * + * 一个由 `T` 型的 body 组成的 `Observable` 对象。 */ head构造一个 `Observable`,当订阅它时,将导致服务器执行一个配置好的 `HEAD` 请求。 - * 关于 `head()` 返回类型的详细信息取决于所提供的选项,参见它的各个重载形式。
+ * + * 构造一个 `Observable`,当订阅它时,将导致服务器执行一个配置好的 `HEAD` 请求。 + * 关于 `head()` 返回类型的详细信息取决于所提供的选项,参见它的各个重载形式。 */ head(url: string, options: { headers?: HttpHeaders | {[header: string]: string | string[]}, @@ -1244,26 +1372,31 @@ export class HttpClient { /** * Construct a JSONP request for the given URL and name of the callback parameter. - *使用指定的 URL 和回调函数名构造一个 JSONP 请求。
+ * + * 使用指定的 URL 和回调函数名构造一个 JSONP 请求。 * * @return an `Observable` of the response object as an `Object` - *一个 `Object` 型响应对象组成的 `Observable` 对象
+ * + * 一个 `Object` 型响应对象组成的 `Observable` 对象 */ jsonp(url: string, callbackParam: string): Observable