<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Request Handling on Shaowen Chen's Website</title><link>https://www.chenshaowen.com/en/tags/request-handling/</link><description>Recent content in Request Handling on Shaowen Chen's Website</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>&amp;copy;2016 - {year}, All Rights Reserved.</copyright><lastBuildDate>Wed, 10 May 2017 19:39:12 +0000</lastBuildDate><sy:updatePeriod>weekly</sy:updatePeriod><atom:link href="https://www.chenshaowen.com/en/tags/request-handling/atom.xml" rel="self" type="application/rss+xml"/><item><title>Django Middleware</title><link>https://www.chenshaowen.com/en/blog/django-middleware.html</link><pubDate>Wed, 10 May 2017 19:39:12 +0000</pubDate><atom:modified>Wed, 10 May 2017 19:39:12 +0000</atom:modified><guid>https://www.chenshaowen.com/en/blog/django-middleware.html</guid><description>1. __init__(self) In a middleware class, the __init__() method is used to perform system-wide initialization settings.
For performance reasons, each enabled middleware is initialized only once per server process. That is, __init__() is called only when the server process starts, and is not executed while handling an individual request.
For a middleware, the usual reason to define an __init__() method is to check whether it is needed at all.</description><dc:creator>WeChat Official Account</dc:creator><category>Django</category><category>Python</category><category>Middleware</category><category>R&amp;D</category><category>Learning</category><category>Request Handling</category><category>Architecture</category></item></channel></rss>