# Http streaming JSON

**URL:** <https://discourse.elm-lang.org/t/http-streaming-json/7939>\
**Category:** Learn\
**Created:** [November 24, 2021, 5:24pm UTC](https://discourse.elm-lang.org/t/http-streaming-json/7939 "2021-11-24T17:24:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DullBananas](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/dullbananas/32/3709_2.png) [@DullBananas](https://discourse.elm-lang.org/u/DullBananas)\
**Post date:** [November 24, 2021, 6:59pm UTC](https://discourse.elm-lang.org/t/http-streaming-json/7939/2 "2021-11-24T18:59:50Z")

</div>

Elm’s Http module does not allow that, but it does let you show a progress bar if your backend can predict the size of the response.

To access data from a request while it’s being received, you need to do the request in JavaScript and use ports. Then use or create a JSON parser that works with streaming data.

> **[Fetch: Download progress](https://javascript.info/fetch-progress)**

If the backend can quickly access a node when given an ID, then there’s another solution: make the backend send only the node IDs in the first response, then the frontend can make one request for each node to get the nodes’ data.

---

_[View the full topic](https://discourse.elm-lang.org/t/http-streaming-json/7939)._
