Remix Utils - v9.0.0
    Preparing search index...
    • Create a response with a XML file response. It receives a string with the XML content and set the Content-Type header to application/xml; charset=utf-8 always.

      This is useful to dynamically create a XML file from a Resource Route.

      Parameters

      • content: string
      • init: number | ResponseInit = {}

      Returns Response

      export let loader: LoaderFunction = async ({ request }) => {
      return xml("<?xml version='1.0'?><catalog></catalog>");
      }