Beispiel #1
0
 def _do_single(*args, **kwargs):
     srv = Gaidaros(*args, **kwargs)
     srv.handle()
Beispiel #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gaidaros import Gaidaros

# ...handles Unix and MS EOLs

server = Gaidaros(handle_request = lambda x: ("Hello World: you said \"{}\"\r\n".format(x.rstrip('\r\n')), False)
server.handle()