createFromPageWithBody()
public method
If you've a theme then you could specify "theme" at the route options (to have a custom doctype/base template)
Note: The actual rendering of $view is delayed to the PageResponse::prepare() which is called shortly before sending the request.