Senin, 18 Maret 2019

uwsgi: Send http response and continue execution

From the uwsgi documentation:


def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return [b"Hello World"]

Is it possible to respond to http request(close http connection) and continue execution flow(without any usage of threads/queues/external services etc)? like this:


def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
end_response(b"Hello World")
#HTTP connection is closed
#continue execution..



from uwsgi: Send http response and continue execution

uwsgi: Send http response and continue execution Rating: 4.5 Diposkan Oleh: Admin

0 komentar:

Posting Komentar

Popular Posts