Revision f8bd7df3 lib/http/server.py
b/lib/http/server.py | ||
---|---|---|
308 | 308 |
handler_context = _HttpServerRequest(self.request_msg) |
309 | 309 |
|
310 | 310 |
try: |
311 |
# Authentication, etc. |
|
312 |
self.server.PreHandleRequest(handler_context) |
|
313 |
|
|
314 |
# Call actual request handler |
|
311 | 315 |
result = self.server.HandleRequest(handler_context) |
312 | 316 |
except (http.HttpException, KeyboardInterrupt, SystemExit): |
313 | 317 |
raise |
... | ... | |
501 | 505 |
else: |
502 | 506 |
self._children.append(pid) |
503 | 507 |
|
508 |
def PreHandleRequest(self, req): |
|
509 |
"""Called before handling a request. |
|
510 |
|
|
511 |
Can be overriden by a subclass. |
|
512 |
|
|
513 |
""" |
|
514 |
|
|
504 | 515 |
def HandleRequest(self, req): |
505 | 516 |
"""Handles a request. |
506 | 517 |
|
Also available in: Unified diff