mux v1.6.2 Release Notes

Release Date: 2018-05-13 // almost 6 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)