@body_template.setter<EOL><INDENT>def body_template(self, value):<DEDENT>
if self.method == VERB.GET:<EOL><INDENT>raise AssertionError("<STR_LIT>")<EOL><DEDENT>if value is None:<EOL><INDENT>self.logger.warning("<STR_LIT>")<EOL>return<EOL><DEDENT>if not isinstance(value, DataCollection):<EOL><INDENT>msg = "<STR_LIT>" % (<EOL>DataCollection.__module__,<EOL>DataCollection.__name__<EOL>)<EOL>raise AssertionError(msg)<EOL><DEDENT>self._body_template = value<EOL>self.set_deserializer_by_mime_type(self.content_type)<EOL>
Must be an instance of a prestans.types.DataCollection subclass; this is
generally set during the RequestHandler lifecycle. Setting this spwans the
parsing process of the body. If the HTTP verb is GET an AssertionError is
thrown. Use with extreme caution.