Guide
The guide explains each part of Vox in depth. If you are new to Vox, read Getting Started first, then the first three pages below. The remaining pages can be read in any order.
| Page | What it covers |
|---|---|
| Routing | HTTP methods, path patterns, parameters and precedence |
| Route Handlers | The handler signature and how to choose input and output types |
| Middleware | How the chain works and how to write your own middleware |
| Context | Passing values, deadlines and cancellation |
| Request | Reading request data, JSON decoding rules, forms and uploads |
| Response | Body types, status codes, headers, redirects and streaming |
| Error Handling | Error responses, decode errors, custom 404 pages and panics |
| Configuration | Built-in settings and your own |
| Running | Serving, graceful shutdown and integration with net/http |
| Testing | Testing routes and middleware with httptest |