Sha256: 3590d16dbb99410f07db43d79858b26d4eaf2a7c7d70e7a542a332100ca6f39d
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Nonnative class HTTPServer < Nonnative::Server def initialize(service) Application.set :port, service.port configure Application super service end def configure(http) # Classes will add configuration end def perform_start Application.start! end def perform_stop Application.stop! end class Application < Sinatra::Application set :bind, '0.0.0.0' set :server, :puma set :logging, false set :quiet, true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nonnative-1.12.0 | lib/nonnative/http_server.rb |