{"id":18841477,"url":"https://github.com/subvisual/http_stream","last_synced_at":"2025-04-14T07:30:56.734Z","repository":{"id":53514329,"uuid":"206352468","full_name":"subvisual/http_stream","owner":"subvisual","description":"A tiny tiny Elixir library to stream big big files","archived":false,"fork":false,"pushed_at":"2021-03-26T14:56:01.000Z","size":21898,"stargazers_count":19,"open_issues_count":4,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T21:11:11.879Z","etag":null,"topics":["hacktoberfest","http","http-client","http-stream","http-streaming","httpclient","httpstream","streaming"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subvisual.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-04T15:30:27.000Z","updated_at":"2024-07-16T11:39:52.000Z","dependencies_parsed_at":"2022-09-20T21:52:02.038Z","dependency_job_id":null,"html_url":"https://github.com/subvisual/http_stream","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fhttp_stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fhttp_stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fhttp_stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fhttp_stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subvisual","download_url":"https://codeload.github.com/subvisual/http_stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248839291,"owners_count":21169790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","http","http-client","http-stream","http-streaming","httpclient","httpstream","streaming"],"created_at":"2024-11-08T02:51:30.244Z","updated_at":"2025-04-14T07:30:55.044Z","avatar_url":"https://github.com/subvisual.png","language":"Elixir","readme":"# HTTPStream\n\n[![Build][build-badge]][build]\n\nHTTPStream is a tiny, tiny package that wraps HTTP requests into a `Stream` so\nthat you can manage data on the fly, without keeping everything in memory.\n\nDownloading an image:\n\n```elixir\nHTTPStream.get(large_image_url)\n|\u003e Stream.into(File.stream!(\"large_image.png\"))\n|\u003e Stream.run()\n```\n\nStreaming multiple images into a ZIP archive (using [zstream][zstream])\n\n```elixir\n[\n  Zstream.entry(\"a.png\", HTTPStream.get(a_url))\n  Zstream.entry(\"b.png\", HTTPStream.get(b_url))\n]\n|\u003e Zstream.zip()\n|\u003e Stream.into(File.stream!(\"archive.zip\"))\n|\u003e Stream.run()\n```\n\n## Table of Contents\n\n* [Installation](#installation)\n* [Development](#development)\n* [Contributing](#contributing)\n* [About](#about)\n\n## Installation\n\nFirst, you need to add `http_stream` to your list of dependencies on `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:http_stream, \"~\u003e 1.0.0\"},\n\n    # if using the Mint adapter:\n    {:castore, \"~\u003e 0.1.7\"},\n    {:mint, \"~\u003e 1.1.0\"}\n\n    # if using the HTTPoison adapter:\n    {:httpoison, \"~\u003e 1.7.0\"}\n  ]\nend\n```\n\nHTTPStream comes with two adapters: [`Mint`][mint] and [`HTTPoison`][httpoison].\nBy default `Mint` is configured but you need to include it in your dependencies.\n\nTo use `HTTPoison`, set in your `config/config.exs`:\n\n```elixir\nconfig :http_stream, adapter: HTTPStream.Adapter.HTTPoison\n```\n\nThat's it! For more intricate API details, refer to the [documentation][docs].\n\n## Development\n\nIf you want to setup the project for local development, you can just run the\nfollowing commands.\n\n```\ngit clone git@github.com:subvisual/http_stream.git\ncd http_stream\nbin/setup\n```\n\nPRs and issues welcome.\n\n## Contributing\n\nFeel free to contribute!\n\nIf you found a bug, open an issue. You can also open a PR for bugs or new\nfeatures. Your PRs will be reviewed and subjected to our styleguide and linters.\n\nAll contributions **must** follow the [Code of Conduct][coc]\nand [Subvisual's guides][subvisual-guides].\n\n## About\n\nHTTPStream is maintained with ❤️  by [Subvisual][subvisual].\n\n\u003cbr\u003e\n\n![Subvisual][subvisual-logo]\n\n[build-badge]: https://github.com/subvisual/http_stream/workflows/build/badge.svg\n[build]: https://github.com/subvisual/http_stream/actions?query=workflow%3Abuild\n[zstream]: https://github.com/ananthakumaran/zstream\n[mint]: https://github.com/elixir-mint/mint\n[httpoison]: https://github.com/edgurgel/httpoison\n[docs]: https://hexdocs.pm/http_stream\n[subvisual]: https://subvisual.com\n[subvisual-guides]: https://github.com/subvisual/guides\n[subvisual-logo]: https://raw.githubusercontent.com/subvisual/guides/master/github/templates/logos/blue.png\n[coc]: https://github.com/subvisual/http_stream/blob/master/CODE_OF_CONDUCT.md\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fhttp_stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubvisual%2Fhttp_stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fhttp_stream/lists"}