Registry / web-framework / thin-async

thin-async

JSON →
library0.3.0rbrubygemsunverified

A wrapper for the Thin web server that enables asynchronous response body sending for long-lived connections.

gem install thin_async
INSTALL
IMPORT
SIG · THIN-ASYNC
T
thin-async
web-frameworkrubyv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Thin
require 'thin_async'

Create an async response with Thin

require 'thin_async' class App def call(env) body = Thin::AsyncBody.new Thread.new do sleep 1 body << "Hello" body << " World" body.close end [200, {'Content-Type' => 'text/plain'}, body] end end Thin::Server.start('0.0.0.0', 3000, App.new)
Debug
Known issues
gotchaOnly works with the Thin web server; not compatible with other servers like Puma or Unicorn.
fix
Use Thin as your application server.
affects: >= 0.3.0
Upgrade
Version history
0.3.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
OpenAI (training)
1
Resources
thin-async — gem install thin-async · libregistry