KomHttpServer

Description

Prerequisite packages: KomServices(which in turn needsDynamicBindingsand, if you are using a pre-3.7-image,Named Process) KomHttpServer is the Comanche web server package. To get a simple web server running, install this package and evaluate the code below. A simple file serving web server will be started and will serve the files in your default directory. | ma |ma := ModuleAssembly core.ma serverRoot: FileDirectory default fullName.ma documentRoot: FileDirectory default fullName.ma directoryIndex: 'index.html index.htm'.ma serveFiles.(HttpService startOn: 8080 named: 'httpd') plug: ma rootModule After starting the server, point your web browser to http://localhost:8080/ If you have loaded Seaside, you can start a web server that serves Seaside based applications using the following configuration: | ma seaside |seaside := WAKom default.ma := ModuleAssembly core.ma serverRoot: FileDirectory default fullName.ma alias: '/seaside' to: [ma addPlug: [:request | seaside process: request]].ma documentRoot: FileDirectory default fullName.ma directoryIndex: 'index.html index.htm'.ma serveFiles.(HttpService startOn: 8080 named: 'httpd') plug: ma rootModule See the class comments of the various subclasses of ComancheModule for documentation and usage examples. ===== Release History =====For newer releases see note on respective SqueakMap release. Below included for historical record. Version 6.2:- Added support for Squeak 3.6- Now uses SocketStream from the network rewrite Version 6.1:- (build #41) Fixes various issues for running on Mac OSX- Packaged using KomPackaging (Squeak version only)- Separated the services framework into a separate package called KomServices- Added a module framework- The following modules have been added (see the individual classes for details):- ModCore - this is the core module and designed to be the root of a module assembly, it extracts basic information from the request and makes it available to sub-modules, it also handles http TRACE and OPTIO

Details

Source
SqueakMap
Dialect
squeak (65% confidence)

Categories

Web UI / Graphics IDE / Dev Tools Networking Education / Howto System / OS
← Back to results