0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-21 18:18:57 +01:00

Update README

This commit is contained in:
Yusuke Wada 2022-01-08 13:51:47 +09:00
parent 74bab8b795
commit 77a8ce82c8

View File

@ -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('<h1>Hello! Hono!</h1>')
})
```
## fire
`app.fire()` do: