Module: Zapp
- Defined in:
- lib/zapp.rb,
lib/zapp/cli.rb,
lib/zapp/pipe.rb,
lib/zapp/logger.rb,
lib/zapp/parser.rb,
lib/zapp/server.rb,
lib/zapp/worker.rb,
lib/zapp/version.rb,
lib/zapp/logger/base.rb,
lib/zapp/worker_pool.rb,
lib/zapp/input_stream.rb,
lib/zapp/configuration.rb,
lib/zapp/socket_pipe/sender.rb,
lib/zapp/http_context/context.rb,
lib/zapp/http_context/request.rb,
lib/zapp/socket_pipe/receiver.rb,
lib/zapp/http_context/response.rb,
lib/zapp/worker/request_processor.rb
Overview
Zapp is a web server for Rack-based Ruby 3.0.0+ applications
Defined Under Namespace
Modules: HTTPContext, SocketPipe Classes: CLI, Configuration, InputStream, Logger, Parser, Pipe, Server, Worker, WorkerPool, ZappError
Constant Summary collapse
- RACTOR_CONFIG_KEY =
The hash key in Ractor.current that stores the global Zapp::Configuration instance
"ZAPP_CONFIG"
- VERSION =
"0.2.6"
Class Method Summary collapse
Class Method Details
.config(reset: false) ⇒ Object
18 19 20 21 22 |
# File 'lib/zapp.rb', line 18 def config(reset: false) Ractor.current[RACTOR_CONFIG_KEY] = Zapp::Configuration.new if reset Ractor.current[RACTOR_CONFIG_KEY] ||= Zapp::Configuration.new end |
.configure {|config| ... } ⇒ Object
24 25 26 |
# File 'lib/zapp.rb', line 24 def configure yield(config) end |