Method: Wpxf::Net::HttpServer#initialize
- Defined in:
- lib/wpxf/net/http_server.rb
#initialize ⇒ Object
Initialize a new instance of Wpxf::Net::HttpServer.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/wpxf/net/http_server.rb', line 11 def initialize super ([ StringOption.new( name: 'http_server_bind_address', desc: 'Address to bind the HTTP server to', default: '0.0.0.0', required: true ), PortOption.new( name: 'http_server_bind_port', desc: 'Port for the HTTP server to listen on', default: 80, required: true ) ]) @http_server_kill_switch = false end |