Convenience function to decorate existing functions
decorate(func, content_type = "text/html", strict_params = FALSE)
func | the function to decorate |
---|---|
content_type | the content type to set on the response object |
strict_params | if TRUE and not all parameters needed for func |