We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336754c commit 8a6dc75Copy full SHA for 8a6dc75
src/Headers.php
@@ -110,6 +110,14 @@ public static function contentHtml($code = 200): void
110
self::set("Content-Type", "text/html", true, $code ?? self::$httpCode);
111
}
112
113
+ /**
114
+ * Set the content-type to xml
115
+ */
116
+ public static function contentXml($code = 200): void
117
+ {
118
+ self::set("Content-Type", "application/xml", true, $code ?? self::$httpCode);
119
+ }
120
+
121
/**
122
* Set the content-type to json
123
*/
0 commit comments