summary refs log tree commit diff
path: root/synapse/http/server.py (follow)
Commit message (Expand)AuthorAgeFilesLines
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
* Fix email verification redirection (#16761)FadhlanR2024-01-021-1/+1
* Update license headersPatrick Cloke2023-11-211-11/+16
* Register media servlets via regex. (#16419)Patrick Cloke2023-10-061-1/+1
* Describe which rate limiter was hit in logs (#16135)David Robertson2023-08-301-1/+7
* Don't log exceptions for every non-200 response (#15969)Erik Johnston2023-07-201-4/+0
* Re-introduce the outbound federation proxy (#15913)Eric Eastwood2023-07-181-24/+31
* Add `Server` to Access-Control-Expose-Headers header (#15908)Michael Telatynski2023-07-111-1/+1
* Revert "Federation outbound proxy" (#15910)Eric Eastwood2023-07-101-31/+24
* Federation outbound proxy (#15773)Eric Eastwood2023-07-051-24/+31
* Add stricter mypy options (#15694)Patrick Cloke2023-05-311-7/+7
* Actually enforce guest + return www-authenticate headerHugh Nimmo-Smith2023-05-301-0/+6
* Disable directory listing for `StaticResource` (#15438)Dirk Klimpel2023-04-141-0/+10
* Add Synapse-Trace-Id to access-control-expose-headers header (#14974)Shay2023-03-201-0/+4
* Respond correctly to unknown methods on known endpoints (#14605)Patrick Cloke2023-02-091-25/+15
* Respond with proper error responses on unknown paths. (#14621)Patrick Cloke2022-12-081-1/+18
* Remove redundant types from comments. (#14412)Patrick Cloke2022-11-161-1/+1
* Implementation of HTTP 307 response for MSC3886 POST endpoint (#14018)Hugh Nimmo-Smith2022-10-181-11/+37
* Fix mypy errors with latest canonicaljson (#13905)David Robertson2022-09-261-2/+2
* Generalise the `@cancellable` annotation so it can be used on functions other...reivilibre2022-08-311-65/+3
* Implement MSC3848: Introduce errcodes for specific event sending failures (#1...Will Hunt2022-07-271-4/+14
* Add Cross-Origin-Resource-Policy header to thumbnail and download media endpo...Robert Long2022-06-271-0/+11
* Enable cancellation of `GET /members` and `GET /state` requests (#12708)Sean Quah2022-05-111-1/+3
* Respect the `@cancellable` flag for `RestServlet`s and `BaseFederationServlet...Sean Quah2022-05-111-0/+5
* Respect the `@cancellable` flag for `DirectServe{Html,Json}Resource`s (#12698)Sean Quah2022-05-111-0/+2
* Capture the `Deferred` for request cancellation in `_AsyncResource` (#12694)Sean Quah2022-05-101-1/+3
* Add `@cancellable` decorator, for use on request handlers (#12586)Sean Quah2022-05-101-0/+61
* Improve logging for cancelled requests (#12587)Sean Quah2022-05-041-0/+30
* Fix logging of incorrect status codes for disconnected requests (#12580)Sean Quah2022-04-281-3/+9
* Remove unused `# type: ignore`s (#12531)David Robertson2022-04-271-2/+2
* Remove unnecessary pass statements. (#12206)Patrick Cloke2022-03-111-1/+0
* Convert all namedtuples to attrs. (#11665)Patrick Cloke2021-12-301-4/+6
* Various opentracing enhancements (#11619)Richard van der Hoff2021-12-211-2/+17
* Return JSON errors for unknown resources under /matrix/client. (#11602)Patrick Cloke2021-12-201-3/+3
* Add missing type hints to synapse.http. (#11571)Patrick Cloke2021-12-141-37/+53
* Add more type hints to synapse.util. (#11321)Patrick Cloke2021-11-121-3/+3
* Add type hints for most `HomeServer` parameters (#11095)Sean Quah2021-10-221-7/+12
* Catch AttributeErrors when calling registerProducer (#10995)Brendan Abolivier2021-10-071-1/+4
* Fix exception responding to request that has been closed (#10932)Erik Johnston2021-09-281-3/+11
* Encode JSON responses on a thread in C, mk2 (#10905)Erik Johnston2021-09-281-15/+57
* Add reactor to `SynapseRequest` and fix up types. (#10868)Erik Johnston2021-09-241-2/+2
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-4/+4
* Drop Origin & Accept from Access-Control-Allow-Headers value (#10114)Michael[tm] Smith2021-06-231-1/+1
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
* Fix additional type hints from Twisted upgrade. (#9518)Patrick Cloke2021-03-031-11/+18
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-27/+45
* Split out a separate endpoint to complete SSO registration (#9262)Richard van der Hoff2021-02-011-0/+7
* Implement MSC2858 support (#9183)Richard van der Hoff2021-01-271-8/+36
* Fix buglet in DirectRenderJsonResource (#8897)Richard van der Hoff2020-12-101-3/+5
* Allow Date header through CORS (#8804)Nicolas Chamo2020-12-011-1/+1
* Remove special case of pretty printing JSON responses for curl (#8833)Tulir Asokan2020-11-271-24/+5
* Merge pull request #8678 from matrix-org/rav/fix_frozen_eventsRichard van der Hoff2020-10-281-3/+1
|\
| * remove unused importsRichard van der Hoff2020-10-281-2/+0
| * Remove frozendict_json_encoder and support frozendicts everywhereRichard van der Hoff2020-10-281-1/+1
* | Fix typos and spelling errors. (#8639)Patrick Cloke2020-10-231-3/+3
|/
* Don't bother responding to client requests that have already disconnected (#8...Andrew Morgan2020-10-061-0/+5
* Enable mypy checking for unreachable code and fix instances. (#8432)Patrick Cloke2020-10-011-2/+2
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
* Switch the JSON byte producer from a pull to a push producer. (#8116)Patrick Cloke2020-08-191-32/+43
* Iteratively encode JSON responses to avoid blocking the reactor. (#8013)Patrick Cloke2020-08-181-8/+89
* Reduce unnecessary whitespace in JSON. (#7372)David Vo2020-08-071-2/+3
* Implement handling of HTTP HEAD requests. (#7999)Patrick Cloke2020-08-031-5/+11
* Return an empty body for OPTIONS requests. (#7886)Patrick Cloke2020-07-241-19/+5
* fix an incorrect commentRichard van der Hoff2020-07-221-2/+2
* Add types to the server code and remove unused parameter (#7813)Patrick Cloke2020-07-101-30/+41
* Merge different Resource implementation classes (#7732)Erik Johnston2020-07-031-175/+190
* Merge branch 'master' into developPatrick Cloke2020-07-021-8/+68
|\
| * Ensure that HTML pages served from Synapse include headers to avoid embedding.Patrick Cloke2020-07-021-8/+68
* | Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-161-2/+2
|/
* Clean up exception handling in SAML2ResponseResource (#7614)Richard van der Hoff2020-06-031-12/+31
* Fix missing CORS headers on OPTION responses (#7560)Erik Johnston2020-05-221-1/+1
* Return 200 OK for all OPTIONS requests (#7534)Patrick Cloke2020-05-221-3/+20
* Tiny optimisation for _get_handler_for_request (#6950)Richard van der Hoff2020-02-191-1/+3
* Implement RedirectException (#6687)Richard van der Hoff2020-01-151-4/+9
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-1/+1
* Trace non-JSON APIs, /media, /key etcErik Johnston2019-10-111-1/+1
* Add opentracing to all client servlets (#5983)Jorik Schellekens2019-09-051-1/+12
* Fix servlet metric names (#5734)Jorik Schellekens2019-07-241-13/+28
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-041-1/+1
* Fix media repo breaking (#5593)Amber Brown2019-07-021-10/+16
* Make the http server handle coroutine-making REST servlets (#5475)Amber Brown2019-06-291-36/+41
* Run Black. (#5482)Amber Brown2019-06-201-36/+44
* Log tracebacks correctlyErik Johnston2019-02-251-4/+4
* Cleanup top level request exception loggingErik Johnston2019-02-181-3/+3
* Fix URL preview bugs (type error when loading cache from db, content-type inc...Amber Brown2018-11-081-4/+4
* Fix spurious exceptions when client closes conncetionErik Johnston2018-09-201-14/+35
* Merge pull request #3701 from matrix-org/rav/use_producer_for_responsesRichard van der Hoff2018-08-171-4/+13
|\
| * Use a producer to stream back responsesRichard van der Hoff2018-08-151-4/+13
* | Refactor request logging codeRichard van der Hoff2018-08-151-47/+23
|/
* Be more careful which errors we send back over the C-S APIRichard van der Hoff2018-08-011-9/+5
* Python 3: Convert some unicode/bytes uses (#3569)Amber Brown2018-08-021-10/+25
* run isortAmber Brown2018-07-091-19/+19
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-3/+2
* Merge remote-tracking branch 'origin/develop' into 3218-official-promAmber Brown2018-05-221-2/+74
|\
| * Merge pull request #3213 from matrix-org/rav/consent_handlerRichard van der Hoff2018-05-161-2/+74
| |\
| | * ConsentResource to gather policy consent from usersRichard van der Hoff2018-05-151-2/+74
* | | rest of the changesAmber Brown2018-05-211-2/+2
|/ /
* / Set Server header in SynapseRequestRichard van der Hoff2018-05-101-10/+4
|/
* Remove redundant request_handler decoratorRichard van der Hoff2018-05-101-7/+2
* Factor wrap_request_handler_with_logging out of wrap_request_handlerRichard van der Hoff2018-05-101-54/+66
* Remove include_metrics paramRichard van der Hoff2018-05-101-17/+7
* Move outgoing_responses_counter handling to RequestMetricsRichard van der Hoff2018-05-101-4/+0
* Bump requests_counter in wrapped_request_handlerRichard van der Hoff2018-05-101-4/+11
* Move RequestMetrics handling into SynapseRequest.processing()Richard van der Hoff2018-05-101-13/+6
* Make RequestMetrics take a raw time rather than a clockRichard van der Hoff2018-05-101-2/+2
* Move request_id management into SynapseRequestRichard van der Hoff2018-05-101-15/+16
* Move RequestsMetrics to its own fileRichard van der Hoff2018-05-091-124/+4
* more bytes stringsAdrian Tschira2018-04-291-1/+1
* Merge pull request #3061 from NotAFile/add-some-byte-stringsRichard van der Hoff2018-04-091-2/+2
|\
| * Add b prefixes to some strings that are bytes in py3Adrian Tschira2018-04-041-2/+2
* | Revert "Merge pull request #3066 from matrix-org/rav/remove_redundant_metrics"Richard van der Hoff2018-04-091-0/+26
* | Add response size metricsErik Johnston2018-04-061-0/+7
* | Remove redundant metrics which were deprecated in 0.27.0.Richard van der Hoff2018-04-041-26/+0
|/
* Add Cache-Control headers to all JSON APIsErik Johnston2018-03-211-0/+1
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2018-03-191-2/+0
|\
| * Replace ujson with simplejsonErik Johnston2018-03-151-3/+2
* | Replace some ujson with simplejson to make it workErik Johnston2018-03-161-1/+2
* | Add some docstrings to help figure this outRichard van der Hoff2018-03-091-2/+26
* | Add a metric which increments when a request is receivedRichard van der Hoff2018-03-091-2/+10
* | refactor JsonResourceRichard van der Hoff2018-03-091-32/+46
* | Merge remote-tracking branch 'origin/develop' into rav/track_db_schedulingRichard van der Hoff2018-01-171-9/+9
|\ \
| * \ Merge pull request #2793 from matrix-org/rav/db_txn_time_in_millisRichard van der Hoff2018-01-171-1/+3
| |\ \
| * | | Fix 'NoneType' object has no attribute 'writeHeaders'Richard van der Hoff2018-01-161-9/+9
* | | | Track DB scheduling delay per-requestRichard van der Hoff2018-01-161-0/+7
| |/ / |/| |
* | | Track db txn time in millisecsRichard van der Hoff2018-01-161-1/+3
|/ /
* | Reorganise request and block metricsRichard van der Hoff2018-01-151-14/+42
* | Update http request metrics before calling servletRichard van der Hoff2018-01-091-11/+19
|/
* Improve tracebacks on exceptionsRichard van der Hoff2017-11-271-3/+9
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
* Initial group server implementationErik Johnston2017-07-101-1/+3
* allow Authorization header which handling got implemented in #1098Krombel2017-06-161-1/+1
* Set CORs headers on responses from the media repoMark Haines2016-11-021-5/+18
* Add exception logging. Fix typoErik Johnston2016-08-221-3/+3
* Allow request handlers to override metric nameErik Johnston2016-08-221-21/+31
* Use top level measureErik Johnston2016-08-221-15/+1
* Add a top level measureErik Johnston2016-08-191-45/+46
* Remove redundant measureErik Johnston2016-08-191-35/+34
* Measure http.server renderErik Johnston2016-08-191-28/+30
* Log when adding listenersRichard van der Hoff2016-07-251-0/+1
* Fix more typos in per-request metricsMark Haines2016-04-281-4/+5
* Fix typo in request metricsMark Haines2016-04-281-1/+1
* Add a comment explaining why automatic metric reporting is disabled for JsonR...Mark Haines2016-04-281-0/+4
* Check if report_metrics is TrueMark Haines2016-04-281-3/+4
* Report per request metrics for all of the things using request_handlerMark Haines2016-04-281-38/+63
* Intern all the thingsErik Johnston2016-03-231-4/+6
* Catch the exceptions thrown by twisted when you write to a closed connectionMark Haines2016-02-121-1/+20
* Fix up logcontextsErik Johnston2016-02-081-3/+2
* Add metrics to pushersErik Johnston2016-02-081-0/+10
* Allowing tagging log contextsErik Johnston2016-02-031-15/+26
* copyrightsMatthew Hodgson2016-01-071-1/+1
* Fix typoDaniel Wagner-Hall2015-12-161-1/+1
* Include errcode on Internal Server ErrorDaniel Wagner-Hall2015-12-141-2/+5
* Track the time spent in the database per request.Mark Haines2015-12-071-0/+15
* Add metrics to track the cpu on the main thread consumed by each type of requestMark Haines2015-12-041-0/+17
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-6/+7
* Remove syutil dependency in favour of smaller single-purpose librariesMark Haines2015-08-241-6/+6
* Don't 500 if a group is missing from the regexMark Haines2015-07-061-1/+1
* Disable twisted access logging. Move access logging to SynapseRequest objectErik Johnston2015-06-151-58/+32
* Log more when we have processed the requestErik Johnston2015-06-151-2/+12
* Create SynapseRequest that overrides __repr__ to not print access_tokenErik Johnston2015-06-151-11/+3
* Make http.server request logging more verbose, but redact access_tokensErik Johnston2015-06-151-2/+12
* Remove log lineErik Johnston2015-05-291-1/+0
* Add config option to turn off freezing events. Use new encode_json api and uj...Erik Johnston2015-05-291-4/+13
* Fix up leak. Add warnings.Erik Johnston2015-05-081-2/+4
* Unused importDavid Baker2015-04-301-1/+1
* Doesn't look like this is used anymoreDavid Baker2015-04-301-13/+0
* Merge branch 'develop' into csauthDavid Baker2015-04-241-97/+124
|\
| * Combine the request wrappers in rest/media/v1 and http/server into a single w...Mark Haines2015-04-211-3/+12
| * Split out the JsonResource request logging and error handling into a separate...Mark Haines2015-04-211-94/+113
* | Explain how I justified to myself making JsonResource not always send JSON.David Baker2015-04-011-0/+7
* | Completely replace fallback auth for C/S V2:David Baker2015-04-011-2/+5
* | Make docs a bit more trueDavid Baker2015-03-311-1/+1
* | Grammar and deduplicationDavid Baker2015-03-311-5/+4
|/
* Add a DistributionMetric to HTTP request/response processing time in the serverPaul "LeoNerd" Evans2015-03-161-0/+9
* actually uphold the bind_host parameter. in theory should make ipv6 binds wor...Matthew Hodgson2015-03-141-1/+6
* Appease pep8Paul "LeoNerd" Evans2015-03-121-3/+5
* Count incoming HTTP requests per servlet that respondsPaul "LeoNerd" Evans2015-03-121-7/+11
* Use _ instead of . as a metric namespacing separator, for PrometheusPaul "LeoNerd" Evans2015-03-121-2/+2
* Rename Metrics' "keys" to "labels"Paul "LeoNerd" Evans2015-03-121-2/+2
* Add vector counters to HTTP clients and servers; count the requests by method...Paul "LeoNerd" Evans2015-03-121-0/+14
* Slightly reduce the insane amounts of indentation in main http server respons...Paul "LeoNerd" Evans2015-03-051-21/+23
* Use git aware version string in User-Agent and Server headersErik Johnston2015-02-181-9/+18
* Fix bug where variable was not always definedErik Johnston2015-02-111-2/+1
* Log when we receive a request, when we send a response and how long it took t...Erik Johnston2015-02-091-2/+21
* Oops: second part of commit dc938606David Baker2015-01-221-6/+2
* Update copyright noticesMark Haines2015-01-061-2/+2
* Set a content-length for JSON responsesMark Haines2015-01-061-0/+1
* Include version in User-Agent and Server headersMark Haines2014-12-221-3/+6
* Fix tests and remove debug loggingErik Johnston2014-12-121-4/+0
* Consistently url decode and decode as utf 8 the URL partsErik Johnston2014-12-121-1/+11
* Get uploads working with new media repoMark Haines2014-12-021-2/+2
* Write the upload portion of version 1 of the media repositoryMark Haines2014-12-021-7/+14
* Fix pep8 codestyle warningsMark Haines2014-11-201-2/+1
* Use module loggers rather than the root logger. Exceptions caused by bad clie...Mark Haines2014-11-201-1/+1
* Add a request-id to each log lineMark Haines2014-10-301-1/+12
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org has...Matthew Hodgson2014-09-031-1/+1
* move contentrepo class to it's own fileMark Haines2014-09-031-162/+1
* Set status message for ratelimit error responsesMark Haines2014-09-031-5/+9
* given everything's apparently gone https:// by default for c-s, change this h...Matthew Hodgson2014-09-011-1/+5
* missed a s#/matrix#/_matrix/gMatthew Hodgson2014-08-311-1/+1
* For the content repo, don't just use homeserver.hostname as that might not in...Erik Johnston2014-08-241-1/+3
* Make the content repo work with in daemon mode. Return the full url on upload...Erik Johnston2014-08-221-6/+20
* Reduce the amount of incredibly spammy stack traces. Expected errors (e.g. Sy...Kegan Dougal2014-08-191-1/+13
* Small amounts of cleanup and bonus round comments.Kegan Dougal2014-08-181-4/+8
* Implemented GETs for the ContentRepoResource. It all actually appears to be w...Kegan Dougal2014-08-181-11/+60
* hs: Make the uploads directory if it doesn't exist. Namespace uploads by the ...Kegan Dougal2014-08-181-5/+46
* Auth content uploads. Added a mapping function from request > filename. Added...Kegan Dougal2014-08-181-12/+32
* Added /matrix/content path, HS resource_for_content_repo attribute and FileUp...Kegan Dougal2014-08-181-0/+28
* If the web client is enabled, automatically redirect root '/' to the web clie...Kegan Dougal2014-08-141-0/+17
* Removed http_server from HomeServer. Updated unit tests to use either resourc...Kegan Dougal2014-08-141-9/+3
* Start phasing out HttpServer: we should be using Resources instead. Added res...Kegan Dougal2014-08-141-0/+5
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-131-0/+1
* Just say yes to OPTIONS requests, since we want to turn on CORS headers for a...Erik Johnston2014-08-121-0/+5
* Reference Matrix Home Servermatrix.org2014-08-121-0/+181