Fix the streaming api. Changed draft_10 for draft_17 and added the possibility of especifing the headers