docs(common): update docs for HttpClient methods (#38878)

PR Close #38878
This commit is contained in:
Benjamin Qin 2020-09-17 10:50:51 +09:00 committed by Joey Perrott
parent 26afcdd86c
commit 75e90fa456
1 changed files with 8 additions and 9 deletions

View File

@ -2528,8 +2528,8 @@ export class HttpClient {
}): Observable<HttpResponse<Object>>; }): Observable<HttpResponse<Object>>;
/** /**
* Constructs a `PUT` request that interprets the body as a JSON object and returns the full HTTP * Constructs a `PUT` request that interprets the body as an instance of the requested type and
* response. * returns the full HTTP response.
* *
* @param url The endpoint URL. * @param url The endpoint URL.
* @param body The resources to add/update. * @param body The resources to add/update.
@ -2547,14 +2547,14 @@ export class HttpClient {
}): Observable<HttpResponse<T>>; }): Observable<HttpResponse<T>>;
/** /**
* Constructs a `PUT` request that interprets the body as a JSON object and returns the response * Constructs a `PUT` request that interprets the body as a JSON object
* body as a JSON object. * and returns an observable of JSON object.
* *
* @param url The endpoint URL. * @param url The endpoint URL.
* @param body The resources to add/update. * @param body The resources to add/update.
* @param options HTTP options * @param options HTTP options
* *
* @return An `Observable` of the response, with the response body as a JSON object. * @return An `Observable` of the response as a JSON object.
*/ */
put(url: string, body: any|null, options?: { put(url: string, body: any|null, options?: {
headers?: HttpHeaders|{[header: string]: string | string[]}, headers?: HttpHeaders|{[header: string]: string | string[]},
@ -2566,15 +2566,14 @@ export class HttpClient {
}): Observable<Object>; }): Observable<Object>;
/** /**
* Constructs a `PUT` request that interprets the body as a JSON object * Constructs a `PUT` request that interprets the body as an instance of the requested type
* and returns an observable of the response. * and returns an observable of the requested type.
* *
* @param url The endpoint URL. * @param url The endpoint URL.
* @param body The resources to add/update. * @param body The resources to add/update.
* @param options HTTP options * @param options HTTP options
* *
* @return An `Observable` of the `HTTPResponse` for the request, with a response body in the * @return An `Observable` of the requested type.
* requested type.
*/ */
put<T>(url: string, body: any|null, options?: { put<T>(url: string, body: any|null, options?: {
headers?: HttpHeaders|{[header: string]: string | string[]}, headers?: HttpHeaders|{[header: string]: string | string[]},