docs(http): add information about body content type to flush method for testing (#29214)

PR Close #29214
This commit is contained in:
Dave 2019-03-11 09:33:52 +01:00 committed by Jason Aden
parent a4fb0486c1
commit 76110d71d3
1 changed files with 2 additions and 0 deletions

View File

@ -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()`.
*/