(ZnServer defaultOn: 1337)
� � � �logToTranscript;
� � � �delegate: (ZnValueDelegate with: [ :request |
� � � � � � � �ZnResponse ok: (ZnEntity text: 'Hello World!') ]);
� � � �start.
ZnClient get: 'http://localhost:1337'.
(ZnServer defaultOn: 1337)
� � � �logToTranscript;
� � � �delegate: (ZnValueDelegate with: [ :request |
� � � � � � � �ZnResponse ok: (ZnEntity with: request contents) ]);
� � � �start.
ZnClient post: 'http://localhost:1337' data: (ZnEntity text: 'Echo').
ZnServer stopDefault.
Smalltalk is a beautiful language, isn't it ?