Incomplete: switch on HTTP state after handshake.