|
|
|
|
|
by bumblebird
6038 days ago
|
|
I certainly am. It's a complete mystery to me. Is it like visual basic? The only PITA with HTTP is chunked encoding. Whoever thought that gem up should be shot. The rest is fairly trivial. Certainly parsing headers is. This implementation looks pretty silly. Having individual states for each of the characters in "HTTP" etc? WTF? edit: Instead of just downmodding me, why not explain exactly what part of parsing HTTP headers is non trivial? |
|
Keeping separate states for characters in HTTP saves you a couple of cycles probably, because you match as you go and can reject the message early and with the exact place that didn't match. It's a bit useless for a 4-letter string though.