Hi all,

I'm the main developer of the django-hotsauce project, a microframework derived from Django to build scalable web apps on top of WSGI. I use Cython for extending Django with a custom "BaseController" type object, to handle low-level HTTP/1.1 request/response semantics:

https://bitbucket.org/tkadm30/django-hotsauce/src/1cee385a8b7ecaf94c0e4c3785174aee43d72de2/lib/notmm/controllers/wsgi.pyx?at=0.8-devel&fileviewer=file-view-default

I would like your input on extending WSGI to support HTTP/2 protocol in Cython and Python 3.

Ideally, I would like to use Cython to extend the BaseController extension to handle concurrent HTTP/2 requests and use WSGI (PEP-3333) to return a streamable HTTP response object.

My BaseControllerMixin class look currently like this:

cdef class BaseControllerMixIn(object):
cdef dict environ
    cdef inline application

1. How can i upgrade this minimal extension to support the newer HTTP/2 features and asynchronous transport in WSGI context ?

2. Is it possible to using the async/wait pragma in Cython source file? I would like to upgrade "get_response" to support HTTP/2 requests and streamed output buffering:

cdef class BaseControllerMixIn(object):

    cdef async streamed_get_response(self, request, ...):

            response = callback(request, *args, **kwargs)

            return response


What do you think?

Etienne

--
Etienne Robillard
tkad...@yandex.com
http://www.isotopesoftware.ca/

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d64a3fb3-cf93-1e5c-fe4c-62707f0f185c%40yandex.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to