A rendered full HTML page, returned by Page.run and Engine.renderPage. Send html as the response body (the adapters accept a Document directly).
Document
const doc = await new Page('/', { title: 'Home' }).run(engine);return htmlResponse(doc); // text/html; charset=utf-8 Copy
const doc = await new Page('/', { title: 'Home' }).run(engine);return htmlResponse(doc); // text/html; charset=utf-8
The complete HTML document.
The complete HTML document, starting with <!DOCTYPE html> when a shell or the default document is used.
<!DOCTYPE html>
The HTML, so a Document can be used where a string is expected.
The HTML encoded as UTF-8 bytes.
A rendered full HTML page, returned by Page.run and Engine.renderPage. Send html as the response body (the adapters accept a
Documentdirectly).Example