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 September 4, 2023 17:30
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 = {}