Use mixins for wrapping encoding aound requests