Skip to content

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.

PageWhat it covers
RoutingHTTP methods, path patterns, parameters and precedence
Route HandlersThe handler signature and how to choose input and output types
MiddlewareHow the chain works and how to write your own middleware
ContextPassing values, deadlines and cancellation
RequestReading request data, JSON decoding rules, forms and uploads
ResponseBody types, status codes, headers, redirects and streaming
Error HandlingError responses, decode errors, custom 404 pages and panics
ConfigurationBuilt-in settings and your own
RunningServing, graceful shutdown and integration with net/http
TestingTesting routes and middleware with httptest

Released under the MIT License.