Comments (2)
Make URL
object from c.req.url
and you can get searchParams
. Do like this:
app.get('/', (c) => {
const searchParams = new URL(c.req.url).searchParams
for (const [key, value] of searchParams) {
console.log(`${key} : ${value}`)
}
return c.text('/')
})
from hono.
Close this issue.
from hono.
Related Issues (20)
- Hono infers the output for all client endpoints as an empty object when building type defs HOT 9
- SSG: Binary files corrupted when using SSG helper
- Returning context.notFound() on a route breaks client typing HOT 1
- Content-type is not specified when returning c.text in bun HOT 4
- Vite HMR fails for client components HOT 7
- Why is onAbort returning a promise? HOT 4
- Tried to build an api with multer and cloudinary
- Add `hydrateRoot` function to `hono/jsx/dom` HOT 11
- Client components: ref values are not reflected in the UI HOT 7
- app.mount doesn't include formData HOT 3
- API rate limit exceeded HOT 2
- `ContextVariableMap` Counterpart for env `type Bindings` for Global Context Types HOT 3
- `basicAuth` and `bearerAuth` should support dynamic users HOT 12
- Improvement Suggestion for CORS Configuration Documentation on Hono HOT 3
- StreamSSE not working HOT 3
- Session flash? HOT 7
- showRoutes print `undefined` HOT 4
- No req.header() in version 4 HOT 1
- Redirect respecting sub-routes HOT 2
- Missing 'end' event listeners for ctx.res in Deno runtime HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hono.