Cancel contexts automatically
The net/http
package in the standard library cancels every request's context after it has finished. kami doesn't do this by default for backwards compatibility reasons. Now you can set kami.Cancel
(or mux.Cancel
) to true
to enable behavior like the standard library that cancels contexts automatically.