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

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

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

            response.Content(buffer, contentType);

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

            response.Content(text);

            return(response);
        }