mux v1.6.2 Release Notes

Release Date: 2018-05-13 // almost 2 years ago
  • ➕ Adds the CORSMethodMiddleware middleware, which allows package users to automatically generate a Access-Control-Allow-Methods HTTP response header based on which methods are configured for a given route. This is useful when dealing with cross-origin requests, and can be easily enabled via router.Use(mux.CORSMethodMiddleware).

    📚 This release otherwise includes documentation fixes and improvements. We are always looking to improve the documentation for mux, and contributions are welcome!

    🔄 CHANGELOG
    📄 e3702be [docs] Improve docstrings for middleware, skipclean (#375)
    fdeb7bc [docs] Doc fix for testing variables in path (#374)
    5e55a4a Add CORSMethodMiddleware (#366)
    👕 ded0c29 Fix linter issues (docs) (#370)
    ⚡️ b57cb16 [build] Update Go versions; add 1.10.x (#364)
    📚 94231ff Fix table-driven example documentation (#363)
    4dbd923 Make Use() variadic (#355)
    07ba1fd Modify http status code to variable in README (#350)
    d284fd8 Modify 403 status code to const variable (#349)