Quick n dirty sketch of request encoding (WIP)