[Twisted-Python] Twisted for http/2 (RESTful) webservices - client/server

Amber Brown hawkowl at atleastfornow.net
Fri May 24 14:37:27 MDT 2019


To note -- Twisted does not currently have HTTP/2 client support, only
server support. Treq will not talk H2 at the moment, but Klein+Twisted will
happily serve it up.

- Amber

On Sat., 25 May 2019, 06:35 meejah, <meejah at meejah.ca> wrote:

> Jayanth Acharya <jayachar88 at gmail.com> writes:
>
> > Checked Klein, and it seems quite promising (and seem quite similar to
> > Flask, from developer standpoint). From the documentation it was not
> > quite evident to me, as to how to use HTTP2 under Klein.
>
> Klein uses Twisted Web underneath. So, it's "merely" a matter of
> installing the right things essentially.
>
> > Checked treq, but is it really advantageous over request ? Also found
> > no reference to HTTP2 in treq documents.
>
> Yes, because "requests" is a synchronous library that won't use Twisted
> at all. As above, treq uses twisted web so it will use http2 if the
> underlying twisted has been set up to use http2 (by installing the right
> things).
>
> p.s. if you need real-time help/discussion, #twisted on freenode is a
> friendly and active channel.
>
> Cheers,
> meejah
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20190525/bbf348fb/attachment-0002.html>


More information about the Twisted-Python mailing list