From 76110d71d39228f0210197c0068365f80af204fe Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 11 Mar 2019 09:33:52 +0100 Subject: [PATCH] docs(http): add information about body content type to flush method for testing (#29214) PR Close #29214 --- packages/common/http/testing/src/request.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/common/http/testing/src/request.ts b/packages/common/http/testing/src/request.ts index 59a18749ed..022cf77e19 100644 --- a/packages/common/http/testing/src/request.ts +++ b/packages/common/http/testing/src/request.ts @@ -33,6 +33,8 @@ export class TestRequest { /** * Resolve the request by returning a body plus additional HTTP information (such as response * headers) if provided. + * If the request specifies an expected body type, the body is converted into the requested type. + * Otherwise, the body is converted to `JSON` by default. * * Both successful and unsuccessful responses can be delivered via `flush()`. */