Sha256: c7f747c20a6601f4b0f9ffff6a3e191579ae75c0d42437e314d03ab6a4b48f1e
Contents?: true
Size: 1.04 KB
Versions: 8
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true # Standard libraries require 'socket' require 'tempfile' require 'time' require 'etc' require 'uri' require 'stringio' require 'thread' require 'puma/puma_http11' require 'puma/detect' require 'puma/json' module Puma autoload :Const, 'puma/const' autoload :Server, 'puma/server' autoload :Launcher, 'puma/launcher' # @!attribute [rw] stats_object= def self.stats_object=(val) @get_stats = val end # @!attribute [rw] stats_object def self.stats Puma::JSON.generate @get_stats.stats end # @!attribute [r] stats_hash # @version 5.0.0 def self.stats_hash @get_stats.stats end # Thread name is new in Ruby 2.3 def self.set_thread_name(name) return unless Thread.current.respond_to?(:name=) Thread.current.name = "puma #{name}" end unless HAS_SSL module MiniSSL # this class is defined so that it exists when Puma is compiled # without ssl support, as Server and Reactor use it in rescue statements. class SSLError < StandardError ; end end end end
Version data entries
8 entries across 8 versions & 2 rubygems