summary refs log tree commit diff
path: root/synapse/http (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' into pushersDavid Baker2015-01-221-1/+0
|\ | | | | | | | | Conflicts: synapse/rest/__init__.py
| * Finish renaming "context" to "room_id" in federation codebaseMark Haines2015-01-161-1/+0
| |
* | Oops: second part of commit dc938606David Baker2015-01-221-6/+2
| |
* | Merge branch 'develop' into pushersDavid Baker2015-01-137-12/+42
|\|
| * SYN-231: User agent header brokenMark Haines2015-01-081-3/+3
| |
| * Update copyright noticesMark Haines2015-01-067-8/+8
| |
| * Set a content-length for JSON responsesMark Haines2015-01-061-0/+1
| |
| * Include version in User-Agent and Server headersMark Haines2014-12-224-6/+35
| |
* | Merge branch 'develop' into pushersDavid Baker2014-12-183-235/+129
|\| | | | | | | | | | | | | Conflicts: synapse/api/errors.py synapse/server.py synapse/storage/__init__.py
| * 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
| |
| * Limit the size of images that are thumbnailed serverside. Limit the size of ↵Mark Haines2014-12-111-6/+19
| | | | | | | | file that a server will download from a remote server
| * Merge branch 'develop' into media_repositoryMark Haines2014-12-101-9/+26
| |\
| | * turn back on per-request transaction retries, so that every time we try to ↵Matthew Hodgson2014-12-101-4/+3
| | | | | | | | | | | | hit a dead server we actually end up hammering 5 times :|
| | * Code style.Erik Johnston2014-12-101-8/+21
| | |
| | * add errbacks to enqueue_pdu deferreds; change logging for failed federation ↵Matthew Hodgson2014-12-101-2/+2
| | | | | | | | | | | | sends to warn rather than exception
| | * squidge to 79 columns as per pep8Matthew Hodgson2014-12-101-3/+4
| | |
| | * track replication destination health, and perform exponential back-off when ↵Matthew Hodgson2014-12-071-6/+10
| | | | | | | | | | | | sending transactions. does *not* yet retry transactions, but drops them on the floor if waiting for a server to recover.
| * | Implement download support for media_repositoryMark Haines2014-12-041-5/+68
| | |
| * | 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-022-219/+14
| |/
* | Merge branch 'develop' into pushersDavid Baker2014-12-021-2/+2
|\|
| * typosMatthew Hodgson2014-11-241-2/+2
| |
* | More work on pushers. Attempt to do HTTP pokes. Not sure if the actual HTTP ↵David Baker2014-11-211-0/+19
|/ | | | pokes work or not yet but the retry semantics are pretty good.
* Fix pep8 and pyflakes warningsMark Haines2014-11-203-7/+8
|
* Merge branch 'develop' into http_client_refactorDavid Baker2014-11-202-8/+9
|\
| * Fix pep8 codestyle warningsMark Haines2014-11-202-8/+9
| |
| * Use module loggers rather than the root logger. Exceptions caused by bad ↵Mark Haines2014-11-201-1/+1
| | | | | | | | clients shouldn't cause ERROR level logging. Fix sql logging to use 'repr' rather than 'str'
* | Separate out the matrix http client completely because just about all of its ↵David Baker2014-11-203-323/+338
| | | | | | | | code it now separate from the simple case we need for standard HTTP(S)
* | Refactor the HTTP clients a little.David Baker2014-11-201-79/+75
| |
* | CaptchaServerHttpClient should extend the base, not matrix http client.David Baker2014-11-201-1/+1
|/
* SYN-141: Encode query params as UTF-8.Mark Haines2014-11-181-1/+7
|
* Merge branch 'develop' into request_loggingMark Haines2014-11-141-0/+8
|\ | | | | | | | | | | | | Conflicts: setup.py synapse/storage/_base.py synapse/util/async.py
| * apply some cache headers to try to make the content repo less nutsoMatthew Hodgson2014-11-111-0/+8
| |
* | Merge branch 'develop' into request_loggingMark Haines2014-10-303-11/+7
|\| | | | | | | | | Conflicts: synapse/config/logger.py
| * Fix pep8 warningsMark Haines2014-10-303-12/+10
| |
* | Add a request-id to each log lineMark Haines2014-10-302-12/+27
|/
* Add get_json method to 3pid http client. Better logging for errors in 3pid ↵Mark Haines2014-10-201-1/+39
| | | | requests
* remove debugging logging for signing requestsMark Haines2014-10-141-4/+0
|
* Verify signatures for server2server requestsMark Haines2014-10-131-3/+7
|
* SYN-75 sign at the request level rather than the transaction levelMark Haines2014-10-131-7/+45
|
* Merge branch 'develop' into server2server_signingMark Haines2014-10-131-11/+35
|\
| * Replace on_send_callback with something a bit clearer so that we can sign ↵Mark Haines2014-10-131-11/+35
| | | | | | | | messages
* | Merge branch develop into server2server_signingMark Haines2014-10-131-154/+136
|\| | | | | | | | | Conflicts: synapse/app/homeserver.py
| * Fix pyflakes errorsMark Haines2014-10-021-8/+2
| |
| * Add a keyword argument to get_json to avoid retrying on DNS failures. Rather ↵Mark Haines2014-10-021-8/+1
| | | | | | | | than passing MatrixHttpClient.RETRY_DNS_LOOKUP_FAILURES as a fake query string parameter
| * Split PlainHttpClient into separate clients for talking to Identity servers ↵Mark Haines2014-10-021-144/+146
| | | | | | | | and talking to Capatcha servers
| * remove "red", "blue" and "green" server_name mappingsMark Haines2014-10-011-7/+0
| |
* | Fix a few pyflakes errors in the server_key_resourceMark Haines2014-09-231-5/+1
| |
* | Add a _matrix/key/v1 resource with the verification keys of the local serverMark Haines2014-09-231-0/+93
|/
* Fix 'age' key to update on retriesErik Johnston2014-09-151-3/+10
|
* Captchas now work on registration. Missing x-forwarded-for config arg ↵Kegan Dougal2014-09-051-1/+27
| | | | support. Missing reloading a new captcha on the web client / displaying a sensible error message.
* Merge branch 'develop' of github.com:matrix-org/synapse into developDavid Baker2014-09-035-169/+232
|\ | | | | | | | | Conflicts: synapse/http/client.py
| * fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-035-5/+5
| | | | | | | | hasn't been incorporated in time for launch.
| * Limit the size of uploadsMark Haines2014-09-031-0/+14
| |
| * Make retrying requests on DNS failures configurable, and turn off retrying ↵Kegan Dougal2014-09-031-6/+19
| | | | | | | | only in directory.get_association
| * hs: Updated synapse.http.client to handle DNSLookupErrors and bail immediately.Kegan Dougal2014-09-031-1/+6
| |
| * Merge branch 'develop' of github.com:matrix-org/synapse into developErik Johnston2014-09-032-163/+193
| |\ | | | | | | | | | | | | | | | Conflicts: synapse/http/server.py synapse/http/content_repository.py
| | * move contentrepo class to it's own fileMark Haines2014-09-032-162/+192
| | |
| * | Add option to change content repo locationErik Johnston2014-09-031-3/+4
| |/
* / Add support for registering with a threepid to the HS (get credentials from ↵David Baker2014-09-031-5/+35
|/ | | | the client and check them against an ID server).
* Merge branch 'master' into developErik Johnston2014-09-031-2/+2
|\
| * Update default endpoint port to match the default ports in the configErik Johnston2014-09-021-2/+2
| |
* | 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 ↵Matthew Hodgson2014-09-011-1/+5
| | | | hardcoding...
* Fix SSL for federation http clientMark Haines2014-09-012-2/+2
|
* Enable SSL for s2s http clientMark Haines2014-09-011-2/+6
|
* 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 ↵Erik Johnston2014-08-241-1/+3
| | | | include the port due to SRV.
* Make the content repo work with in daemon mode. Return the full url on ↵Erik Johnston2014-08-221-6/+20
| | | | upload. Update the webclient to use new content repo api.
* Reduce the amount of incredibly spammy stack traces. Expected errors (e.g. ↵Kegan Dougal2014-08-191-1/+13
| | | | SynapseErrors) shouldn't have their full trace logged every time. Don't send responses to disconnected requests.
* 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 ↵Kegan Dougal2014-08-181-11/+60
| | | | working.
* hs: Make the uploads directory if it doesn't exist. Namespace uploads by the ↵Kegan Dougal2014-08-181-5/+46
| | | | base64 encoded user id of the uploader. Make a reasonable attempt to retry clashing upload paths. Try to guess a sensible file extension depending on the content type.
* Auth content uploads. Added a mapping function from request > filename. ↵Kegan Dougal2014-08-181-12/+32
| | | | Added exception handling for content uploads. webclient: Only prefix the client API path on doRequest, not doBaseRequest (this would've broken the identity server auth too). Added matrixService.uploadContent. May not require mFileUpload anymore.
* Added /matrix/content path, HS resource_for_content_repo attribute and ↵Kegan Dougal2014-08-181-0/+28
| | | | FileUploadResource. Added stub methods.
* If the web client is enabled, automatically redirect root '/' to the web ↵Kegan Dougal2014-08-141-0/+17
| | | | client path.
* Removed http_server from HomeServer. Updated unit tests to use either ↵Kegan Dougal2014-08-141-9/+3
| | | | resource_for_federation or resource_for_client depending on what is being tested.
* Start phasing out HttpServer: we should be using Resources instead. Added ↵Kegan Dougal2014-08-141-0/+5
| | | | resource_for_client/federation/web_client to the HomeServer and hooked the C-S servlets to operate on resource_for_client. Dynamically construct the Resource tree.
* fix http client GET parameters; somehow missing named param. how could this ↵Matthew Hodgson2014-08-141-2/+2
| | | | have ever worked!?
* Update get_json()'s documentation to match the actual observed behaviourPaul "LeoNerd" Evans2014-08-131-4/+3
|
* add in whitespace after copyright statements to improve legibilityMatthew Hodgson2014-08-134-0/+4
|
* Just say yes to OPTIONS requests, since we want to turn on CORS headers for ↵Erik Johnston2014-08-121-0/+5
| | | | all paths
* Reference Matrix Home Servermatrix.org2014-08-124-0/+612