Re: [Twisted-Python] How to design REST API with Twisted?

2015-11-12 Thread Glyph Lefkowitz
> On Nov 12, 2015, at 7:33 AM, Wang Yan wrote: > > Absolutely that's what I'm looking for! Thanks a lot! Glad I could help! > However, I'm wondering if Twisted and Klein support filtering results. For > example, the User table in MySQL contains id, name and age fields. How can I > get all us

Re: [Twisted-Python] How to design REST API with Twisted?

2015-11-12 Thread Wang Yan
Absolutely that's what I'm looking for! Thanks a lot! However, I'm wondering if Twisted and Klein support filtering results. For example, the User table in MySQL contains id, name and age fields. How can I get all users whose name are "Alan" and age > 16? It seems I need a filter, but I'm not

Re: [Twisted-Python] HTTP/2 and Twisted

2015-11-12 Thread Cory Benfield
> On 12 Nov 2015, at 06:04, Glyph Lefkowitz wrote: > Creating this dependency loop (twisted->txh2->(twisted->txh2->..., h2)) seems > potentially problematic, and maybe more trouble than it's worth in terms of > factoring things out. An IProtocol implementation is literally three methods > - m