Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handler := BasicHandler new.
- service := (HttpService on: 8080 named: 'Example Http Service')
- onRequestDo: [ :httpRequest | handler processHttpRequest: httpRequest ];
- start.
- BasicHandler>>processHttpRequest: aRequest
- ^HttpResponse fromString: '<html><head></head><body>Hello World ' , Time now printString , '</body></html>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement