jarcoal / httpmock

HTTP mocking for Golang
http://godoc.org/github.com/jarcoal/httpmock
MIT License
1.93k stars 103 forks source link

support request.Cancel, which adds support for client timeouts #15

Closed teepark closed 7 years ago

teepark commented 8 years ago

Fixes #13

dlebech commented 7 years ago

@teepark Thanks for the PR. Looks great. I would like to see the two other branches of the functionality tested (panicking and successful request). Given the age of the PR, I'll go ahead and merge it immediately. However, note that I changed the base branch to dev. I'll use this branch to make sure everything works with the current PRs.