HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/puma-6.1.0/ri/Puma/DSL/cdesc-DSL.ri
U:RDoc::NormalClass[iI"DSL:ETI"Puma::DSL;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"KThe methods that are available for use inside the configuration file. ;TI"BThese same methods are used in Puma cli and the rack handler ;TI"internally.;To:RDoc::Markup::BlankLineo;	;[I"#Used manually (via CLI class):;T@o:RDoc::Markup::Verbatim;[I"5config = Configuration.new({}) do |user_config|
;TI"  user_config.port 3001
;TI"	end
;TI"config.load
;TI"
;TI"=puts config.options[:binds] # => "tcp://127.0.0.1:3001"
;T:@format0o;	;[I"Used to load file:;T@o;;[I"$ cat puma_config.rb
;TI"port 3002
;T;0o;	;[I"Resulting configuration:;T@o;;[	I"?config = Configuration.new(config_file: "puma_config.rb")
;TI"config.load
;TI"
;TI"=puts config.options[:binds] # => "tcp://127.0.0.1:3002"
;T;0o;	;[I"EYou can also find many examples being used by the test suite in ;TI"+test/config+.;T@o;	;[I"MPuma v6 adds the option to specify a key name (String or Symbol) to the ;TI"Mhooks that run inside the forked workers.  All the hooks run inside the ;TI"({Puma::Cluster::Worker#run} method.;T@o;	;[	I"PPreviously, the worker index and the LogWriter instance were passed to the ;TI"Rhook blocks/procs.  If a key name is specified, a hash is passed as the last ;TI"Qparameter.  This allows storage of data, typically objects that are created ;TI"Vbefore the worker that need to be passed to the hook when the worker is shutdown.;T@o;	;[I"+The following hooks have been updated:;T@o;;[	I"L| DSL Method         |  Options Key            | Fork Block Location |
;TI"L| on_worker_boot     | :before_worker_boot     | inside, before      |
;TI"L| on_worker_shutdown | :before_worker_shutdown | inside, after       |
;TI"K| on_refork          | :before_refork          | inside              |;T;0:
@fileI"lib/puma/dsl.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[[U:RDoc::Constant[iI"ON_WORKER_KEY;TI"Puma::DSL::ON_WORKER_KEY;T:public0o;;[;
@G;0@G@cRDoc::NormalClass0[[[I"
class;T[[;[[I"new;TI"lib/puma/dsl.rb;T[I"ssl_bind_str;T@Z[:protected[[:private[[I"
instance;T[[;[G[I"_load_from;T@Z[I"_offer_plugins;T@Z[I"activate_control_app;T@Z[I"after_worker_boot;T@Z[I"after_worker_fork;T@Z[I"app;T@Z[I"before_fork;T@Z[I"	bind;T@Z[I"bind_to_activated_sockets;T@Z[I"clean_thread_locals;T@Z[I"clear_binds!;T@Z[I"
debug;T@Z[I"default_host;T@Z[I"directory;T@Z[I"drain_on_shutdown;T@Z[I"early_hints;T@Z[I"environment;T@Z[I"extra_runtime_dependencies;T@Z[I"first_data_timeout;T@Z[I"force_shutdown_after;T@Z[I"fork_worker;T@Z[I"get;T@Z[I"http_content_length_limit;T@Z[I"inject;T@Z[I"io_selector_backend;T@Z[I"	load;T@Z[I"log_formatter;T@Z[I"log_requests;T@Z[I"lowlevel_error_handler;T@Z[I"max_fast_inline;T@Z[I".mutate_stdout_and_stderr_to_sync_on_write;T@Z[I"on_refork;T@Z[I"on_restart;T@Z[I"on_worker_boot;T@Z[I"on_worker_fork;T@Z[I"on_worker_shutdown;T@Z[I"out_of_band;T@Z[I"persistent_timeout;T@Z[I"pidfile;T@Z[I"plugin;T@Z[I"	port;T@Z[I"preload_app!;T@Z[I"prune_bundler;T@Z[I"queue_requests;T@Z[I"
quiet;T@Z[I"rack_url_scheme;T@Z[I"rackup;T@Z[I"raise_exception_on_sigterm;T@Z[I"restart_command;T@Z[I"set_default_host;T@Z[I"set_remote_address;T@Z[I"shutdown_debug;T@Z[I""silence_single_worker_warning;T@Z[I"
ssl_bind;T@Z[I"state_path;T@Z[I"state_permission;T@Z[I"stdout_redirect;T@Z[I"tag;T@Z[I"threads;T@Z[I"wait_for_less_busy_worker;T@Z[I"worker_boot_timeout;T@Z[I"worker_check_interval;T@Z[I"worker_culling_strategy;T@Z[I"worker_shutdown_timeout;T@Z[I"worker_timeout;T@Z[I"workers;T@Z[;[[;[[I"$add_pem_values_to_options_store;T@Z[I"process_hook;T@Z[[U:RDoc::Context::Section[i0o;;[;
0;0[@GI"	Puma;TcRDoc::NormalModule