[MINOR] reorganized the request parser states to improve speed

The most commonly branched states have been grouped in the first
ifs.
1 file changed