httpd ( port -- http-server ) (original) (raw)

httpd ( port -- http-server )

Vocabulary
http.server

Inputs

port an integer

Outputs

http-server a http-server

Word description
Starts an HTTP server on the specified port number.

Notes
For more flexibility, use and fill in the tuple slots before calling start-server.

Definition

USING: accessors io.servers kernel ;

IN: http.server

: httpd ( port -- http-server )
swap >>insecure f >>secure start-server ;