<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Processing HTTP multipart responses in Power Query in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4418272#M59575</link>
    <description>&lt;P&gt;For our Power BI connector, we have very large responses that we need to stream part-by-part in an HTTP multi-part response; this would greatly improve performance as we would be able to send each chunk of data as soon as it becomes available.&lt;BR /&gt;&lt;BR /&gt;The response, conforming to HTTP &lt;A href="https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html" target="_self"&gt;multipart/mixed spec&lt;/A&gt;, looks like this in its raw form:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;---
content-type: application/json; charset=utf-8

{"hasNext":true,"data":{"books":[]}}
---
content-type: application/json; charset=utf-8

{"hasNext":true,"incremental":[{"path":["books",0],"items":[{"title":"Things Fall Apart","author":"Chinua Achebe"}]}]}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;The server streams multiple parts over time with separators and content-type info between each part.&lt;BR /&gt;&lt;BR /&gt;If you use Web.Contents, it just returns the whole string displayed above instead of interpreting the multipart response correctly. We could do text processing on that string, but that defeats the point. Is there a way to handle multipart responses in Power Query so that each part can be processed in a streaming manner?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 19:12:06 GMT</pubDate>
    <dc:creator>xli629b</dc:creator>
    <dc:date>2025-02-19T19:12:06Z</dc:date>
    <item>
      <title>Processing HTTP multipart responses in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4418272#M59575</link>
      <description>&lt;P&gt;For our Power BI connector, we have very large responses that we need to stream part-by-part in an HTTP multi-part response; this would greatly improve performance as we would be able to send each chunk of data as soon as it becomes available.&lt;BR /&gt;&lt;BR /&gt;The response, conforming to HTTP &lt;A href="https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html" target="_self"&gt;multipart/mixed spec&lt;/A&gt;, looks like this in its raw form:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;---
content-type: application/json; charset=utf-8

{"hasNext":true,"data":{"books":[]}}
---
content-type: application/json; charset=utf-8

{"hasNext":true,"incremental":[{"path":["books",0],"items":[{"title":"Things Fall Apart","author":"Chinua Achebe"}]}]}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;The server streams multiple parts over time with separators and content-type info between each part.&lt;BR /&gt;&lt;BR /&gt;If you use Web.Contents, it just returns the whole string displayed above instead of interpreting the multipart response correctly. We could do text processing on that string, but that defeats the point. Is there a way to handle multipart responses in Power Query so that each part can be processed in a streaming manner?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 19:12:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4418272#M59575</guid>
      <dc:creator>xli629b</dc:creator>
      <dc:date>2025-02-19T19:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Processing HTTP multipart responses in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4418520#M59582</link>
      <description>&lt;P&gt;What is the original response code?&amp;nbsp; Remember you have this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-query/handling-status-codes" target="_blank"&gt;Handling status codes with Web.Contents for Power Query connectors - Power Query | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/powerquery-m/web-contents" data-linktype="absolute-path" target="_blank"&gt;&lt;CODE&gt;Web.Contents&lt;/CODE&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;function has some built-in functionality for dealing with certain HTTP status codes. The default behavior can be overridden in your extension using the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ManualStatusHandling&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;field in the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/powerquery-m/web-contents#__toc360793395" data-linktype="absolute-path" target="_blank"&gt;options record&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 00:49:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4418520#M59582</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-20T00:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Processing HTTP multipart responses in Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4582705#M59636</link>
      <description>&lt;P&gt;Hi - Thanks for the reply. I looked into this, and for this multipart/mixed response, there is just a HTTP 200 status code at the beginning, and futher parts arrive with the separator without an additional HTTP status code.&lt;BR /&gt;&lt;BR /&gt;So I think manual status code handling would not work with the multipart/mixed response format. Perhaps it would help if partial responses came with HTTP 206 Partial Content statuses, and it may be worth researching that, but that would be a different protocol from what we're currently considering.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 20:56:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Processing-HTTP-multipart-responses-in-Power-Query/m-p/4582705#M59636</guid>
      <dc:creator>xli629b</dc:creator>
      <dc:date>2025-02-25T20:56:14Z</dc:date>
    </item>
  </channel>
</rss>

