added support for specifying request bodies and content types