Sha256: ef891f1de3634f41ac0c8b0aa57e422d90cf67dc99e7b12dd2fe3f34ad59e75c

Contents?: true

Size: 234 Bytes

Versions: 8

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony/http'

puts "pid: #{Process.pid}"
puts 'Listening on port 1234...'

Polyphony::HTTP::Server.serve('0.0.0.0', 1234) do |req|
  req.respond("Hello world!\n")
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
polyphony-http-0.28 examples/http_server_simple.rb
polyphony-http-0.27 examples/http_server_simple.rb
polyphony-http-0.26 examples/http_server_simple.rb
polyphony-http-0.25 examples/http_server_simple.rb
polyphony-http-0.24 examples/http_server_simple.rb
polyphony-0.23 examples/http/http_server_simple.rb
polyphony-0.22 examples/http/http_server_simple.rb
polyphony-0.21 examples/http/http_server_simple.rb