Module: Puma

Defined in:
lib/puma/java_io_buffer.rb,
lib/puma/cli.rb,
lib/puma/util.rb,
lib/puma/const.rb,
lib/puma/binder.rb,
lib/puma/client.rb,
lib/puma/detect.rb,
lib/puma/events.rb,
lib/puma/server.rb,
lib/puma/minissl.rb,
lib/puma/null_io.rb,
lib/puma/reactor.rb,
lib/puma/app/status.rb,
lib/puma/delegation.rb,
lib/puma/control_cli.rb,
lib/puma/thread_pool.rb,
lib/puma/configuration.rb,
lib/puma/jruby_restart.rb,
ext/puma_http11/puma_http11.c

Overview

Conservative native JRuby/Java implementation of IOBuffer backed by a ByteArrayOutputStream and conversion between Ruby String and Java bytes

Defined Under Namespace

Modules: App, Const, Delegation, JRubyRestart, MiniSSL, Util Classes: Binder, CLI, Client, Configuration, ConnectionError, ControlCLI, Events, HttpParser, HttpParserError, IOBuffer, JavaIOBuffer, NullIO, PidEvents, Reactor, Server, ThreadPool, UnsupportedOption

Constant Summary collapse

HTTP_STATUS_CODES =

Every standard HTTP code mapped to the appropriate message. These are used so frequently that they are placed directly in Puma for easy access rather than Puma::Const itself.

Rack::Utils::HTTP_STATUS_CODES
STATUS_WITH_NO_ENTITY_BODY =

For some HTTP status codes the client only expects headers.

Hash[Rack::Utils::STATUS_WITH_NO_ENTITY_BODY.map { |s|
[s, true]
IS_JRUBY =
defined?(JRUBY_VERSION)

Class Attribute Summary collapse

Class Attribute Details

.cli_configObject

Returns the value of attribute cli_config.



9
10
11
# File 'lib/puma/configuration.rb', line 9

def cli_config
  @cli_config
end