move processContinuation to be near processHeaders since they're so similar.