Menu
My Site LogoRoutexDocsPackagesBlog
GitHub
My Site LogoRoutex
  • Docs
  • Packages
  • Blog
  • GitHub
  • Getting Started
    • Introduction
    • Installation
    • Listening
    • Body
    • Providers
    • TypeScript
    • Comparison
  • Routes
    • Routes
    • Child Routers
    • Parameters
    • Query String
    • Headers
    • Context Data
    • Request ID
    • Errors
  • Middlewares
    • Middlewares
    • Express Middlewares
  • Examples
    • Scaling
    • Templates

Query String

Query string is parsed using ctx.query, as an object:

app.get("/name", (ctx) => {
// /name?firstName=john
return new TextBody(ctx.query.firstName);
});
Edit this page
Previous
« Parameters
Next
Headers »

Routex

  • Docs
  • Packages
  • Blog

Community

  • Stack Overflow
  • Spectrum

More

  • GitHub
  • npm
Copyright © 2020 Charles Crete (Routex)