{"id":15649240,"url":"https://github.com/macournoyer/thin_async","last_synced_at":"2025-07-31T02:41:07.479Z","repository":{"id":760623,"uuid":"429588","full_name":"macournoyer/thin_async","owner":"macournoyer","description":"A nice wrapper to send response body asynchronously with Thin","archived":false,"fork":false,"pushed_at":"2015-05-19T12:06:03.000Z","size":247,"stargazers_count":39,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T21:26:43.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/macournoyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-12-13T04:24:17.000Z","updated_at":"2023-09-08T16:26:04.000Z","dependencies_parsed_at":"2022-08-16T10:50:07.907Z","dependency_job_id":null,"html_url":"https://github.com/macournoyer/thin_async","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/macournoyer/thin_async","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fthin_async","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fthin_async/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fthin_async/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fthin_async/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/macournoyer","download_url":"https://codeload.github.com/macournoyer/thin_async/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/macournoyer%2Fthin_async/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267978141,"owners_count":24175250,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-03T12:28:58.293Z","updated_at":"2025-07-31T02:41:07.422Z","avatar_url":"https://github.com/macournoyer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thin Asynchronous Response API\nA nice wrapper around Thin's obscure async callback used to send response body asynchronously.\nWhich means you can send the response in chunks while allowing Thin to process other requests.\n\nCrazy delicious with em-http-request for file upload, image processing, proxying, etc.\n\n## _WARNING_\nYou should not use long blocking operations (Net::HTTP or slow shell calls) with this as it\nwill prevent the EventMachine event loop from running and block all other requests.\n\n## Usage\nInside your Rack app #call(env):\n\n    Thin::AsyncResponse.perform(env) do |response|\n      response.status = 201\n      response.headers[\"X-Muffin-Mode\"] = \"ACTIVATED!\"\n\n      response \u003c\u003c \"this is ... \"\n\n      EM.add_timer(1) do\n        # This will be sent to the client 1 sec later without blocking other requests.\n        response \u003c\u003c \"async!\"\n        response.done\n      end\n    end\n\nSee example/ dir for more.\n\n(c) macournoyer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacournoyer%2Fthin_async","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacournoyer%2Fthin_async","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacournoyer%2Fthin_async/lists"}