add hook for sendRequestHeader and sendRequestEntity