Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
WebServer
Last updated at 11:11 am UTC on 14 July 2018
Since Squeak 4.6 a WebServer is included in the WebClient package.

For instructions and examples choose the menu 'Help' and then 'Help Browser', topic 'WebServer'.
Or evaluate
 HelpBrowser openOn: WebServerHelp.

A simple example:
 Webserver exampleBrowse

WebServer and WebClient hello world demo

To know your local host address:
NetNameResolver localHostAddress

WebServer send200Response:


Note about Pharo port

This Webclient / Webserver code was also loaded into Pharo and has been modified there.
No documentation yet how much the APIs differ. There are attempts to have a Facade covering both APIs (TODO: post link here)