add callbacks for http response state
Merge pull request #26 from jonnii/callback-for-state

Add callbacks for http response state