http: allow the header_done callback to reset the client state