1. Tim Savage
  2. django-extras

Commits

Tim Savage  committed 720661a

Added middleware documentation

  • Participants
  • Parent commits a60533b
  • Branches default

Comments (0)

Files changed (2)

File docs/ref/index.txt

View file
 
    contrib/auth
    forms/index
+   middleware
    models/index
    http-response
    validators

File docs/ref/middleware.txt

View file
+==========
+Middleware
+==========
+
+.. module:: django_extras.middleware
+    :synopsis: Additional middleware
+
+Timing Middleware
+=================
+
+.. module:: django_extras.middleware.timing
+    :class: TimingMiddleware
+
+    Adds a header to all responses with the total time spent generating a
+    response. This middleware component should be added as early as possible in
+    the list of middleware classes to get best results.
+
+    The name of the header returned to the browser is ``X-PROCESSING_TIME_MS``,
+    time is in milliseconds.