Commit Graph

1520 Commits

Author SHA1 Message Date
Matus Ferech
2197015386
Add HttpError 2019-05-04 17:42:55 +02:00
Matus Ferech
fb6d14f9e8
Add raise_for_status to Response 2019-05-04 17:42:27 +02:00
Tom Christie
8a227c1f2b Fix docstrings 2019-05-02 12:11:05 +01:00
Tom Christie
0c6f6182cf Reorganise structure 2019-05-01 16:21:04 +01:00
Tom Christie
2de053eff3 Update README 2019-05-01 16:01:36 +01:00
Tom Christie
5f8000fb35 Updating docstrings 2019-05-01 15:58:23 +01:00
Tom Christie
891548ea7e Update README 2019-05-01 15:39:53 +01:00
Tom Christie
4fe2f694a1 Update README 2019-05-01 15:33:41 +01:00
Tom Christie
6cb5c0de0e Still truckin' on 2019-05-01 15:17:58 +01:00
Tom Christie
fa8d2963c4 Update README 2019-05-01 14:49:44 +01:00
Tom Christie
6b60d95a4d Truckin' on 2019-05-01 14:35:23 +01:00
Tom Christie
0ca1c844cd Truckin' on 2019-05-01 12:39:16 +01:00
Tom Christie
d7cf8bbf36 Media types with 'text/' should default to iso-8859-1 2019-05-01 12:32:31 +01:00
Tom Christie
118d94b58c
Merge pull request #21 from yeraydiazdiaz/wait-for-connection-close
Add `raw` method to SyncResponse
2019-05-01 11:36:47 +01:00
Tom Christie
e1ecb360d9 Carefulness with encoding everywhere 2019-05-01 11:32:03 +01:00
Tom Christie
b948798414 Add idna support. More tests. 2019-05-01 10:58:58 +01:00
Tom Christie
5d552eba69
Update test_sync.py 2019-05-01 09:49:08 +01:00
Tom Christie
20bc1f3530
Merge branch 'master' into wait-for-connection-close 2019-05-01 09:46:19 +01:00
Tom Christie
302fe93df9 Use rfc3986 for URL handling 2019-04-30 17:39:40 +01:00
Tom Christie
fd9823e59c Add test for explicitly setting the encoding to use 2019-04-30 16:37:10 +01:00
Tom Christie
d8df61b44b Add response.text and response.encoding 2019-04-30 16:35:25 +01:00
Tom Christie
4255d41846 Prefer 'content' over 'body' 2019-04-30 15:08:24 +01:00
Tom Christie
4c5511313c Response.content 2019-04-30 14:58:43 +01:00
Tom Christie
dea4d42c6d Rejig test and tighten up models API 2019-04-30 13:52:37 +01:00
Tom Christie
4d908d024f Clean up response interface 2019-04-30 11:40:37 +01:00
Tom Christie
d7619a92a8 Finessing interface 2019-04-30 11:26:11 +01:00
Tom Christie
d652479b07 response.next() 2019-04-29 17:14:08 +01:00
Tom Christie
2b134a6a3d
Merge pull request #20 from yeraydiazdiaz/decoding-exceptions
Wrap decoding errors with custom exceptions
2019-04-29 17:00:40 +01:00
Tom Christie
51ae3e1e96
Merge branch 'master' into decoding-exceptions 2019-04-29 16:58:00 +01:00
Tom Christie
696c054968
Merge pull request #23 from encode/adapters
Adapter refactoring
2019-04-29 16:55:42 +01:00
Tom Christie
450ea25b5a Add await response.next() interface 2019-04-29 16:18:41 +01:00
Tom Christie
b392b7ea59 Test allow_redirects=False 2019-04-29 16:08:31 +01:00
Tom Christie
05e0649e8f Nicer headers interface 2019-04-29 16:05:05 +01:00
Tom Christie
83d322f736 Handle body in redirects 2019-04-29 15:25:44 +01:00
Tom Christie
4f23ab4f0d Rejig request preparing 2019-04-29 14:25:24 +01:00
Yeray Diaz Diaz
6b4742303e Raise single DecodingError
Fix typo
2019-04-29 13:38:36 +01:00
Tom Christie
041813bc4a Redirections 2019-04-29 12:35:58 +01:00
Tom Christie
8b4ef87a89 Redirect tests 2019-04-29 12:12:08 +01:00
Tom Christie
e09fc3741f Restructuring 2019-04-29 11:54:48 +01:00
Yeray Diaz Diaz
99dc1a99d2 Add raw method to SyncResponse 2019-04-27 17:16:41 +01:00
Yeray Diaz Diaz
bdc218f8e6 Wrap decoding errors with custom exceptions 2019-04-27 16:39:53 +01:00
Tom Christie
fe43c08adc Add API sketch 2019-04-26 17:08:38 +01:00
Tom Christie
8a29a0a1ad Rollin' 2019-04-26 17:00:47 +01:00
Tom Christie
fab6fcd397 Adapters 2019-04-26 15:34:04 +01:00
Tom Christie
ddf1cec65a Drop connections from pool on connection exceptions 2019-04-25 17:16:37 +01:00
Tom Christie
6d35506277 Drop unneccessary __hash__ methods 2019-04-25 17:05:40 +01:00
Tom Christie
06f6d50084 More specfic annotations on callbacks 2019-04-25 17:03:14 +01:00
Tom Christie
f942eb94f1 Add http2 connection re-use 2019-04-25 16:17:42 +01:00
Tom Christie
28c505a70f Tighten up connection acquiry/release 2019-04-25 15:31:47 +01:00
Tom Christie
286f04f1a6 Add PoolSemaphore 2019-04-25 12:57:18 +01:00