forked-synapse/synapse/api
Richard van der Hoff 2ec8ca5e60
Remove SynapseRequest.get_user_agent (#9069)
SynapseRequest is in danger of becoming a bit of a dumping-ground for "useful stuff relating to Requests",
which isn't really its intention (its purpose is to override render, finished and connectionLost to set up the 
LoggingContext and write the right entries to the request log).

Putting utility functions inside SynapseRequest means that lots of our code ends up requiring a
SynapseRequest when there is nothing synapse-specific about the Request at all, and any old
twisted.web.iweb.IRequest will do. This increases code coupling and makes testing more difficult.

In short: move get_user_agent out to a utility function.
2021-01-12 12:34:16 +00:00
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
auth_blocking.py Don't MAU limit AS ghost users 2020-12-17 12:04:14 +00:00
auth.py Remove SynapseRequest.get_user_agent (#9069) 2021-01-12 12:34:16 +00:00
constants.py Try and drop stale extremities. (#8929) 2020-12-18 09:49:18 +00:00
errors.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
filtering.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
presence.py Convert stream database to async/await. (#8074) 2020-08-17 07:24:46 -04:00
ratelimiting.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
room_versions.py Implement MSC2176: Updated redaction rules (#8984) 2021-01-05 07:41:48 -05:00
urls.py Show a confirmation page during user password reset (#8004) 2020-09-10 11:45:12 +01:00