From 77a8ce82c8e96b19cc5ac15483cea4b489a12afe Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sat, 8 Jan 2022 13:51:47 +0900 Subject: [PATCH] Update README --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2492108..4ac54f47 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ app.get('/say', (c) => { ### c.json() -Render text as `Content-Type:application/json`: +Render JSON as `Content-Type:application/json`: ```js app.get('/api', (c) => { @@ -255,6 +255,16 @@ app.get('/api', (c) => { }) ``` +### c.html() + +Render HTML as `Content-Type:text/html`: + +```js +app.get('/api', (c) => { + return c.html('

Hello! Hono!

') +}) +``` + ## fire `app.fire()` do: