Reference was https://github.com/jquery/jquery/blob/master/src/ajax.js#L45