Use raw headers.
Refactor.
Handle unknown HTTP phrase.