Implement request callbacks, closes #408 by gaborcsardi · Pull Request #409 · r-lib/httr
More details in #408. There is an HTTP mocking implementation that uses this, in the https://github.com/gaborcsardi/httrmock package.