<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=Twisted</id>
	<title>Twisted - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://air.imag.fr/index.php?action=history&amp;feed=atom&amp;title=Twisted"/>
	<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Twisted&amp;action=history"/>
	<updated>2026-06-10T07:15:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://air.imag.fr/index.php?title=Twisted&amp;diff=10534&amp;oldid=prev</id>
		<title>Donsez: Created page with &quot;&#039;&#039;Twisted is an event-driven networking engine written in Python (MIT license)&#039;&#039;  Protocols : HTTP (WS ?, REST ?), SMTP, POP3, IMAP, SSHv2, DNS, ...  ==Docs== * http://twistedmat…&quot;</title>
		<link rel="alternate" type="text/html" href="https://air.imag.fr/index.php?title=Twisted&amp;diff=10534&amp;oldid=prev"/>
		<updated>2013-04-05T09:26:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;Twisted is an event-driven networking engine written in Python (MIT license)&amp;#039;&amp;#039;  Protocols : HTTP (WS ?, REST ?), SMTP, POP3, IMAP, SSHv2, DNS, ...  ==Docs== * http://twistedmat…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;Twisted is an event-driven networking engine written in Python (MIT license)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Protocols : HTTP (WS ?, REST ?), SMTP, POP3, IMAP, SSHv2, DNS, ...&lt;br /&gt;
&lt;br /&gt;
==Docs==&lt;br /&gt;
* http://twistedmatrix.com/trac/&lt;br /&gt;
* Livre : Twisted Network Programming Essentials, 2nd Edition : Event-driven Network Programming with Pytho By Jessica McKellar, Abe Fettig, 2013, http://shop.oreilly.com/product/0636920025016.do&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
===Web Server===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from twisted.web import server, resource&lt;br /&gt;
from twisted.internet import reactor&lt;br /&gt;
&lt;br /&gt;
class HelloResource(resource.Resource):&lt;br /&gt;
    isLeaf = True&lt;br /&gt;
    numberRequests = 0&lt;br /&gt;
    &lt;br /&gt;
    def render_GET(self, request):&lt;br /&gt;
        self.numberRequests += 1&lt;br /&gt;
        request.setHeader(&amp;quot;content-type&amp;quot;, &amp;quot;text/plain&amp;quot;)&lt;br /&gt;
        return &amp;quot;I am request #&amp;quot; + str(self.numberRequests) + &amp;quot;\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
reactor.listenTCP(8080, server.Site(HelloResource()))&lt;br /&gt;
reactor.run()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Donsez</name></author>
	</entry>
</feed>