[uWSGI] Protobuf + HTTP

Roberto De Ioris roberto at unbit.it
Wed Apr 1 20:10:43 CEST 2015


> Hello,
>
> Just wondering if there is a way in uWSGI to get X amount of bytes from
> the
> packet that are protobuf, do some logic and then send the rest of the
> bytes
> as the HTTP packet.
>
> Something like what the Netty Pipeline does.
>
> Thank you.
>

If you mean passing requests as protobuf and getting back http responses,
you can implement a protocol plugin.

The scgi one is a good example for starting:


https://github.com/unbit/uwsgi/blob/master/proto/scgi.c


-- 
Roberto De Ioris
http://unbit.com


More information about the uWSGI mailing list