protected ResourceResponse Content(string content, string contentType, Encoding encoding) { var response = new ResourceResponse(); response.Content(encoding.GetBytes(content), contentType); return(response); }
protected ResourceResponse Content(byte[] buffer, string contentType = null) { var response = new ResourceResponse(); response.Content(buffer, contentType); return(response); }
protected ResourceResponse Text(string text) { var response = new ResourceResponse(); response.Content(text); return(response); }