Django 1.10: "new style" middleware equivalent of `process_request()`
<p>How would one create "new style" middleware, which fulfills an equivalent implementation to using the <code>process_request()</code> hook with the "old style"?</p>

<p>I've already adapted pre 1.10 middleware <code>process_request()</code> using <code>MiddlewareMixin</code>...</p>

<pre><code>from django.utils.deprecation import MiddlewareMixin

class MyCustomMiddleware(MiddlewareMixin):

    def process_request(self, request):
        # My request logic
        return response
</code></pre>

<p>I'd like to know how to do a "pure" >1.9 "new style" implementation.  I tried doing so by implementing <code>__init__()</code> and <code>__call__()</code> like this without luck:</p>

<pre><code>class MyCustomMiddleware(object):

    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        # My request logic
        return response
</code></pre>

<p>Thanks.</p>