Advertisement
Guest User

Untitled

a guest
May 14th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. handler := BasicHandler new.
  2.  
  3. service := (HttpService on: 8080 named: 'Example Http Service')
  4.         onRequestDo: [ :httpRequest | handler processHttpRequest: httpRequest ];
  5.         start.
  6.  
  7. BasicHandler>>processHttpRequest: aRequest
  8.     ^HttpResponse fromString: '<html><head></head><body>Hello World ' , Time now printString , '</body></html>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement