Module: RSpec::Httpd::Server
Constant Summary collapse
- MAX_STARTUP_TIME =
10
Instance Method Summary collapse
-
#start!(host:, port:, command:) ⇒ Object
builds and returns a server object.
Instance Method Details
#start!(host:, port:, command:) ⇒ Object
builds and returns a server object.
You can use this method to retrieve a client connection to a server specified via host:, port:, and, optionally, a command.
16 17 18 19 |
# File 'lib/rspec/httpd/server.rb', line 16 def start!(host:, port:, command:) @servers ||= {} @servers[[host, port, command]] ||= do_start(host, port, command) end |