Esempio n. 1
0
        protected ResourceResponse Content(string content, string contentType, Encoding encoding)
        {
            var response = new ResourceResponse();

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

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

            response.Content(buffer, contentType);

            return(response);
        }
Esempio n. 3
0
        protected ResourceResponse Text(string text)
        {
            var response = new ResourceResponse();

            response.Content(text);

            return(response);
        }