Turn http-session into a protocol