{"id":23949910,"url":"https://github.com/jeroenvisser101/content_disposition","last_synced_at":"2025-04-12T22:37:41.698Z","repository":{"id":57485622,"uuid":"384495708","full_name":"jeroenvisser101/content_disposition","owner":"jeroenvisser101","description":"A helper package for Elixir to generate Content-Disposition values","archived":false,"fork":false,"pushed_at":"2021-08-01T02:37:23.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T18:19:07.309Z","etag":null,"topics":["content-disposition","elixir"],"latest_commit_sha":null,"homepage":"https://hexdocs.pm/content_disposition","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeroenvisser101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-09T16:35:11.000Z","updated_at":"2024-11-11T21:27:52.000Z","dependencies_parsed_at":"2022-09-01T23:10:52.808Z","dependency_job_id":null,"html_url":"https://github.com/jeroenvisser101/content_disposition","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenvisser101%2Fcontent_disposition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenvisser101%2Fcontent_disposition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenvisser101%2Fcontent_disposition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeroenvisser101%2Fcontent_disposition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeroenvisser101","download_url":"https://codeload.github.com/jeroenvisser101/content_disposition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643032,"owners_count":21138353,"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":["content-disposition","elixir"],"created_at":"2025-01-06T11:52:38.571Z","updated_at":"2025-04-12T22:37:41.665Z","avatar_url":"https://github.com/jeroenvisser101.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ContentDisposition\n\n[Online documentation](https://hexdocs.pm/content_disposition) | [Hex.pm](https://hex.pm/packages/content_disposition)\n\n\u003c!-- MDOC !--\u003e\n\n`ContentDisposition` helps properly formatting Content-Disposition headers.\n\nInspired by Ruby's [`content_disposition`](https://github.com/shrinerb/content_disposition) gem,\nthis package formats a given disposition and optional filename to an acceptable value for the\n`Content-Disposition` header. It takes care of encoding, escaping and adds an ASCII fallback.\n\n## Examples\n\n```elixir\n# Without filename\niex\u003e ContentDisposition.format(disposition: :inline)\n\"inline\"\n\n# With a filename, and disposition as a string\niex\u003e ContentDisposition.format(disposition: \"inline\", filename: \"kitten.jpg\")\n\"inline; filename=\\\"kitten.jpg\\\"; filename*=UTF-8''kitten.jpg\"\n\n# With a UTF-8 filename as attachment\niex\u003e ContentDisposition.format(disposition: :attachment, filename: \"kïttéñ.jpg\")\n\"attachment; filename=\\\"k%3Ftt%3F%3F.jpg\\\"; filename*=UTF-8''k%C3%AFtt%C3%A9%C3%B1.jpg\"\n```\n\n\u003c!-- MDOC !--\u003e\n\n## Installation\n\nAdd `content_disposition` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:content_disposition, \"~\u003e 1.0.0\"}]\nend\n```\n\n## License\n\nThis library is MIT licensed. See the\n[LICENSE](https://raw.github.com/jeroenvisser101/content_disposition/main/LICENSE)\nfile in this repository for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroenvisser101%2Fcontent_disposition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeroenvisser101%2Fcontent_disposition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeroenvisser101%2Fcontent_disposition/lists"}