Skip to Content
referenceAdditional Topics

Last Updated: 3/9/2026


API Reference - Additional Topics

Note: This section is under construction. Full API reference documentation will be added soon.

This page serves as a placeholder for additional API reference documentation that will be added to complete the reference section.

Reference Documentation To Be Added

The following API reference guides are planned:

Core APIs

  • Context API - Complete reference for the Context object (c)
  • Request API - HonoRequest object methods and properties
  • Routing API - Advanced routing patterns and methods
  • Presets - Router presets (hono, hono/quick, hono/tiny)

Helper APIs

  • Cookie Helpers - Cookie parsing and setting
  • SSG Helpers - Static site generation utilities
  • Streaming Helpers - Server-sent events and streaming responses
  • HTML Helpers - HTML templating without JSX
  • Factory Helpers - Creating handlers and middleware
  • Testing Helpers - Type-safe testing utilities

Current Reference Documentation

The following reference docs are already available:

Comprehensive Coverage in Other Sections

Many API details are covered in depth in these sections:

Key Concepts

Guides

Quick API Overview

While we complete the full reference documentation, here’s a quick overview:

Context Object (c)

// Request c.req.param('id') // Path parameters c.req.query('page') // Query parameters c.req.header('Authorization') // Headers c.req.json() // Parse JSON body c.req.formData() // Parse form data // Response c.text('Hello') // Text response c.json({ data }) // JSON response c.html(<div>Hello</div>) // HTML response c.redirect('/path') // Redirect c.status(201) // Set status c.header('X-Custom', 'value') // Set header // Variables c.set('user', user) // Set variable c.get('user') // Get variable // Environment c.env.DATABASE_URL // Access bindings c.env.MY_KV // KV namespace

Hono App

// Routing app.get('/path', handler) app.post('/path', handler) app.put('/path', handler) app.delete('/path', handler) app.all('/path', handler) app.on('METHOD', '/path', handler) // Middleware app.use('*', middleware) app.use('/api/*', middleware) // Composition app.route('/api', apiApp) app.basePath('/v1') app.mount('/other', otherFramework) // Error Handling app.notFound(handler) app.onError(errorHandler) // Testing app.request('/path') app.request(req)

Community Resources

What’s Next