change to standard default values
This commit is contained in:
@@ -15,14 +15,20 @@ feature {NONE} -- Initialization
|
|||||||
local
|
local
|
||||||
app: NINO_APPLICATION
|
app: NINO_APPLICATION
|
||||||
do
|
do
|
||||||
port_number := 8123
|
port_number := 80
|
||||||
print ("Example: start a Nino web server on port " + port_number.out + ", %Nand reply Hello World for any request such as http://localhost:" + port_number.out + "/%N")
|
base_url := ""
|
||||||
create app.make_custom (agent execute, "")
|
debug ("nino")
|
||||||
|
print ("Example: start a Nino web server on port " + port_number.out +
|
||||||
|
", %Nand reply Hello World for any request such as http://localhost:" + port_number.out + "/" + base_url + "%N")
|
||||||
|
end
|
||||||
|
create app.make_custom (agent execute, base_url)
|
||||||
app.listen (port_number)
|
app.listen (port_number)
|
||||||
end
|
end
|
||||||
|
|
||||||
port_number: INTEGER
|
port_number: INTEGER
|
||||||
|
|
||||||
|
base_url: STRING
|
||||||
|
|
||||||
invariant
|
invariant
|
||||||
port_number_valid: port_number > 0
|
port_number_valid: port_number > 0
|
||||||
note
|
note
|
||||||
|
|||||||
Reference in New Issue
Block a user