-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
featureIncludes new featuresIncludes new features
Description
Clear and concise description of the problem
h3 v3 is going to support web standard Request/Response as default.
@intliy/utils has already supported utlifies for web standard Request/Response such as getHeaderLanguages.
We can use it to handle for h3 and hono, below example:
import { getHeaderLanguages } from '@intliy/utils'
// h3
import { H3, serve } from 'h3'
const app = new H3().get('/', (event) => {
const languages = getHeaderLanguages(event.req)
})
// hono
import { Hono } from 'hono'
const app = new Hono()
app.get('/', (c) => {
const languages = getHeaderLanguages(c.req)
})Suggested solution
N/A
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
featureIncludes new featuresIncludes new features