Skip to content

Instantly share code, notes, and snippets.

View maceto's full-sized avatar
🏠
Working from home

Martin Aceto maceto

🏠
Working from home
View GitHub Profile
@tenderlove
tenderlove / h2_puma.rb
Last active August 14, 2024 06:10
Demo HTTP/2 server with Puma
require 'socket'
require 'openssl'
require 'puma/server'
require 'ds9'
class Server < DS9::Server
def initialize socket, app
@app = app
@read_streams = {}
@write_streams = {}