示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="HtmlResponder"/> class.
        /// </summary>
        public HtmlResponder()
        {
            SupportedFormat = "html";

            foreach (string mimeType in KnownMimeTypes.HtmlTypes())
            {
                SupportedMimeTypes.Add(mimeType);
            }
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XmlResponder"/> class.
        /// </summary>
        public XmlResponder()
        {
            SupportedFormat = "xml";
            ContentType     = KnownMimeTypes.XmlTypes()[0];

            foreach (string mimeType in KnownMimeTypes.XmlTypes())
            {
                SupportedMimeTypes.Add(mimeType);
            }
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="JsonResponder"/> class.
        /// </summary>
        public JsonResponder()
        {
            SupportedFormat = "json";

            ContentType = KnownMimeTypes.JsonTypes()[0];

            foreach (string mimeType in KnownMimeTypes.JsonTypes())
            {
                SupportedMimeTypes.Add(mimeType);
            }
        }