> I see, and is it possible to set specific header from an rpc func ? Like
> we
> have in application:
>
> def application(env, start_response):
>
> start_response('200 OK', [('Content-Type','text/html')])
>
>
> Thx.
This is an example of "rpcraw":
from uwsgidecorators import *
@rpc('upper')
def rpc_upper1(uri):
return "HTTP/1.0 200 OK\r\n\r\n%s" % uri.upper()
Then:
uwsgi --master --http-socket :9090 --route-run "rpcraw:upper
\${REQUEST_URI}" --py-import foobar
every request will return an "uppered" version of the REQUEST_URI
--
Roberto De Ioris
http://unbit.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi