Example #1
0
        protected ResourceResponse Content(string content, string contentType, Encoding encoding)
        {
            var response = new ResourceResponse();

            response.Content(encoding.GetBytes(content), contentType);

            return(response);
        }
Example #2
0
        protected ResourceResponse Content(byte[] buffer, string contentType = null)
        {
            var response = new ResourceResponse();

            response.Content(buffer, contentType);

            return(response);
        }
Example #3
0
        protected ResourceResponse Text(string text)
        {
            var response = new ResourceResponse();

            response.Content(text);

            return(response);
        }