Sha256: 8f110284dedf55f39db9789644dac3c5e3942d76a091fa92c05ad4d6cc1be64a
Contents?: true
Size: 443 Bytes
Versions: 28
Compression:
Stored size: 443 Bytes
Contents
$LOAD_PATH.unshift File.expand_path("../../lib", __dir__) require 'async' require 'async/http/server' require 'async/http/endpoint' protocol = Async::HTTP::Protocol::HTTP2 endpoint = Async::HTTP::Endpoint.parse('http://127.0.0.1:9222', reuse_port: true) Async.logger.level = Logger::DEBUG Async do server = Async::HTTP::Server.for(endpoint, protocol) do |request| Protocol::HTTP::Response[200, {}, request.body] end server.run end
Version data entries
28 entries across 28 versions & 1 rubygems