muxie
muxie copied to clipboard
Handle OPTIONS method
I added a simple way of handling OPTIONS automatically, when MethodHandler
is in use.
As a potential update, it should handle duplications gracefully (eg. one should be able to register a method to handle OPTIONS on their own).
Cors example: https://github.com/kataras/muxie/blob/master/_examples/11_cors/main.go