Commit Graph

65 Commits (347aa3c2252dca5cd7a50ebc0a7e87f33bc7a4b4)

Author SHA1 Message Date
Steven Hammerton 625e13bfde Add get_raw method to SimpleHttpClient, use this in CAS auth rather than requests 9 years ago
Daniel Wagner-Hall 492beb62a8 Use space not dash as delimiter 9 years ago
Daniel Wagner-Hall e0b466bcfd Use space not dash as delimiter 9 years ago
Daniel Wagner-Hall b28c7da0a4 Preserve version string in user agent 9 years ago
Daniel Wagner-Hall 8fc52bc56a Allow synapse's useragent to be customized 9 years ago
Daniel Wagner-Hall 3bcbabc9fb Rename context factory 9 years ago
Daniel Wagner-Hall 6485f03d91 Fix random formatting 9 years ago
Daniel Wagner-Hall 81a93ddcc8 Allow configuration to ignore invalid SSL certs 9 years ago
Mark Haines 78323ccdb3 Remove syutil dependency in favour of smaller single-purpose libraries 9 years ago
Erik Johnston 653533a3da Fix log context when sending requests 10 years ago
Erik Johnston 83f119a84a Log requests and responses sent via http.client 10 years ago
Erik Johnston 79e37a7ecb Correctly pass connection pool parameter 10 years ago
Erik Johnston 11f51e6ded Up maxPersistentPerHost count 10 years ago
Erik Johnston 086df80790 Add connection pooling to SimpleHttpClient 10 years ago
Erik Johnston 476899295f Change the way we do logging contexts so that they survive divergences 10 years ago
David Baker 59bf16eddc New registration for C/S API v2. Only ReCAPTCHA working currently. 10 years ago
Paul "LeoNerd" Evans 128cf2daf7 Appease pep8 10 years ago
Paul "LeoNerd" Evans b0cf867319 Use _ instead of . as a metric namespacing separator, for Prometheus 10 years ago
Paul "LeoNerd" Evans f9478e475b Rename Metrics' "keys" to "labels" 10 years ago
Paul "LeoNerd" Evans 7d72e44eb9 Add vector counters to HTTP clients and servers; count the requests by method and responses by method and response code 10 years ago
Paul "LeoNerd" Evans c53ec53d80 Pull out all uses of the underlying HTTP user agent .request() method into a single wrapper function, to make adding metrics easier 10 years ago
Kegan Dougal 2de5b14fe0 Fix bug which prevented the HS pushing events to the AS due to FrozenEvents 10 years ago
Erik Johnston 5358966a87 Use git aware version string in User-Agent and Server headers 10 years ago
Erik Johnston 2bf0e85f3d Use encode_canonical_json for http client 10 years ago
Kegan Dougal f518324426 Minor tweaks based on PR feedback. 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 10 years ago
Kegan Dougal 543e84fe70 Add SimpleHttpClient.put_json with the same semantics as get_json. 10 years ago
Kegan Dougal 6d3e4f4d0a Update user/alias query APIs to use new format of SimpleHttpClient.get_json 10 years ago
Kegan Dougal 96d4bf9012 Modify API for SimpleHttpClient.get_json and update usages. 10 years ago
Mark Haines c9d2cecac9 SYN-231: User agent header broken 10 years ago
Mark Haines adb04b1e57 Update copyright notices 10 years ago
Mark Haines 24b5d01853 Include version in User-Agent and Server headers 10 years ago
David Baker eb6aedf92c More work on pushers. Attempt to do HTTP pokes. Not sure if the actual HTTP pokes work or not yet but the retry semantics are pretty good. 10 years ago
Mark Haines 610c2ea131 Fix pep8 and pyflakes warnings 10 years ago
David Baker e377d33652 Separate out the matrix http client completely because just about all of its code it now separate from the simple case we need for standard HTTP(S) 10 years ago
David Baker dc60eee50e Refactor the HTTP clients a little. 10 years ago
David Baker cf66532ac1 CaptchaServerHttpClient should extend the base, not matrix http client. 10 years ago
Mark Haines 3e54d70ae2 SYN-141: Encode query params as UTF-8. 10 years ago
Mark Haines 7d709542ca Fix pep8 warnings 10 years ago
Mark Haines b29517bd01 Add a request-id to each log line 10 years ago
Mark Haines 4be99c2989 Add get_json method to 3pid http client. Better logging for errors in 3pid requests 10 years ago
Mark Haines f74e850b5c remove debugging logging for signing requests 10 years ago
Mark Haines 6684855767 Verify signatures for server2server requests 10 years ago
Mark Haines 10ef8e6e4b SYN-75 sign at the request level rather than the transaction level 10 years ago
Mark Haines 693d0b8f45 Replace on_send_callback with something a bit clearer so that we can sign messages 10 years ago
Mark Haines b9cdc443d7 Fix pyflakes errors 10 years ago
Mark Haines 574377636e Add a keyword argument to get_json to avoid retrying on DNS failures. Rather than passing MatrixHttpClient.RETRY_DNS_LOOKUP_FAILURES as a fake query string parameter 10 years ago
Mark Haines 4f11518934 Split PlainHttpClient into separate clients for talking to Identity servers and talking to Capatcha servers 10 years ago
Mark Haines c8d67beb9c remove "red", "blue" and "green" server_name mappings 10 years ago
Erik Johnston 6ac0b4ade8 Fix 'age' key to update on retries 10 years ago