Skip to content

Cancel contexts automatically

Compare
Choose a tag to compare
@guregu guregu released this 07 Oct 11:17
· 7 commits to master since this release

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.