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

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

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

            response.Content(buffer, contentType);

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

            response.Content(text);

            return(response);
        }