Volga
Home
API Docs
GitHub
  • English
  • Русский
Home
API Docs
GitHub
  • English
  • Русский
  • Home
  • Getting Started

    • Quick Start
    • Route Parameters
    • Query Parameters
    • Route Groups
  • Requests & Responses

    • Headers
    • Handling JSON
    • Handling Form Data
    • Working with Files
    • Cookies
  • Middleware & Infrastructure

    • Basic Middleware
    • Custom Middleware
    • Response Compression
    • Request Decompression
    • CORS (Cross-Origin Resource Sharing)
    • Static Files
    • Rate Limiting
  • Security & Access

    • Authentication and Authorization
  • Reliability & Observability

    • Global Error Handling
    • Tracing & Logging
    • Request cancellation
  • Protocols & Realtime

    • HTTP/1 and HTTP/2
    • HTTPS
    • WebSockets
    • Server-Sent Events (SSE)
  • Advanced Patterns

    • Dependency Injection
    • Custom Handling of HEAD, OPTIONS, and TRACE Methods

HTTP/1 and HTTP/2

Starting with v0.3.1, you can configure the HTTP version. If you add Volga like this, HTTP/1 is used by default:

[dependencies]
volga = { version = "..." }

To enable HTTP/2, add the http2 feature or use full:

[dependencies]
volga = { version = "...", features = ["full"] }

With full, HTTP/2 is used when possible, and it falls back to HTTP/1 automatically.

Last Updated: 1/18/26, 6:33 PM
Next
HTTPS