Http decoding/encoding and associated tests.