diff --git a/websites/mswjs.io/src/content/docs/api/http-response.mdx b/websites/mswjs.io/src/content/docs/api/http-response.mdx index 2b5d88e5..d7982c25 100644 --- a/websites/mswjs.io/src/content/docs/api/http-response.mdx +++ b/websites/mswjs.io/src/content/docs/api/http-response.mdx @@ -116,6 +116,14 @@ Creates a `Response` instance with the `Content-Type: text/plain` header and giv HttpResponse.text('Hello world!') ``` +### `HttpResponse.html(body, init)` + +Creates a `Response` instance with the `Content-Type: text/html` header and given response body. + +```js +HttpResponse.html(`

Hello world!

`) +``` + ### `HttpResponse.xml(body, init)` Creates a `Response` instance with the `Content-Type: application/xml` header and given response body.