PYME.ParallelTasks.webframework module

class PYME.ParallelTasks.webframework.APIHTTPServer(server_address)

Bases: SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer

Attributes

timeout  

Methods

class PYME.ParallelTasks.webframework.JSONAPIRequestHandler(request, client_address, server)

Bases: BaseHTTPServer.BaseHTTPRequestHandler

Attributes

timeout  

Methods

do_GET()
do_POST()
log_request([code, size]) Log an accepted request.
do_GET()
do_POST()
log_request(code='-', size='-')

Log an accepted request.

This is called by send_response().

logrequests = False
protocol_version = 'HTTP/1.1'
PYME.ParallelTasks.webframework.register_endpoint(path)