本页还没有译文
本页 5 段还没译成简体中文,下面显示的是英文原文。Helpers
还没翻译译自英文(hono.dev)本页 5 段都还没译
Helpers
Helpers are available to assist in developing your application. Unlike middleware, they don't act as handlers, but rather provide useful functions.
For instance, here's how to use the Cookie helper:
import { getCookie, setCookie } from 'hono/cookie'
const app = new Hono()
app.get('/cookie', (c) => {
const yummyCookie = getCookie(c, 'yummy_cookie')
// ...
setCookie(c, 'delicious_cookie', 'macha')
//
})Available Helpers
AI 翻译查看英文原文