WebServer (from Cuis-WebClient) working

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

WebServer (from Cuis-WebClient) working

David Graham
I'm using the term working very loosely. :)

To test, download and install the latest Cuis-WebClient package.  Then
open a workspace and evaluate:

response := 'Hello from Cuis!'.
WebServer reset default listenOn: 8080.
     WebServer default addService: '/test' action:[:req|
         req stream200Response: (response readStream) size: response
size type: 'text/plain'.
     ].


Now open your web browser and enter the following URL:
http://localhost:8080/test

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org