<s> from graily import HTTPServer , BaseHTTPRequestHandler , init_log <EOL> def main ( ) : <EOL> import logging <EOL> init_log ( level = logging . DEBUG ) <EOL> class Test ( BaseHTTPRequestHandler ) : <EOL> def GET ( self ) : <EOL> return "<STR_LIT>" <EOL> def POST ( self ) : <EOL> return str ( self . parameters ) <EOL> server = HTTPServer ( ( "<STR_LIT>" , <NUM_LIT> ) , Test ) <EOL> server . serve_forever ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
