Module: Net::HTTP::Server
- Defined in:
- lib/net/http/server/daemon.rb,
lib/net/http/server/parser.rb,
lib/net/http/server/server.rb,
lib/net/http/server/stream.rb,
lib/net/http/server/version.rb,
lib/net/http/server/requests.rb,
lib/net/http/server/responses.rb,
lib/net/http/server/chunked_stream.rb
Defined Under Namespace
Modules: Requests, Responses Classes: ChunkedStream, Daemon, Parser, Stream
Constant Summary collapse
- VERSION =
net-http-server version.
'0.2.3'
Class Method Summary collapse
-
.run(background: false, **kwargs) {|request, socket| ... } ⇒ Object
Starts the HTTP Server.
Class Method Details
.run(background: false, **kwargs) {|request, socket| ... } ⇒ Object
Starts the HTTP Server.
42 43 44 45 46 47 48 |
# File 'lib/net/http/server/server.rb', line 42 def Server.run(background: false, **kwargs,&block) daemon = Daemon.new(**kwargs,&block) daemon.start daemon.join unless background return daemon end |