Allow passing a block to post, get, put, and delete methods.