/// <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); } }
/// <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); } }
/// <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); } }