Commit graph

80 commits

Author SHA1 Message Date
Gavin M. Roy
5d4ce37ff0 ConnectionError is also raised 2019-04-01 16:31:40 -04:00
Gavin M. Roy
27b2daf289 Refactor HTTPResponse to class from namedtuple 2019-04-01 15:10:25 -04:00
Gavin M. Roy
2d17d2fe2e flake8 cleanup 2019-04-01 11:39:13 -04:00
Gavin M. Roy
bd4ed28fe1 Flake8 and test env fixes 2019-04-01 11:27:24 -04:00
Gavin M. Roy
ed9c4adc81 Include u-msgpack-python in the testing env 2019-04-01 11:22:29 -04:00
Gavin M. Roy
cd488b7dc2 Add flake8 test to travis-ci job 2019-04-01 11:19:36 -04:00
Gavin M. Roy
627e87f069 Multiple client improvements
- Add ``history`` attribute of the response with all response objects
- Add ``links`` attribute of the response with the parsed link header if set
- Change logging level in a few places to a more appropriate level
- Add support for rejected consumers when auto-creating the ``User-Agent`` header
- Add the netloc of a request to the log entry created when rate limited
- Use RequestHandler.settings instead of RequestHandler.application.settings
  when auto-creating the ``User-Agent`` header for a Tornado request handler
- Add test coverage of the Warning response header behavior
2019-04-01 11:16:27 -04:00
Gavin M. Roy
4ee088c562 Add flake8, remove mock, and add sprockets.mixins.mediatype 2019-04-01 09:56:25 -04:00
Gavin M. Roy
eceb3b6103 Handle CurlError 2019-04-01 09:55:58 -04:00
Gavin M. Roy
0c7fb45408 Unused assignment 2019-04-01 09:50:59 -04:00
Gavin M. Roy
58a2a547d5 Extract the netloc when rate limited for more helpful log lines 2019-04-01 09:50:04 -04:00
Andrew Rabert
77b5b95efa
Merge pull request #16 from noone234/doc
Updated required package versions in README file.
2019-02-15 13:10:10 -05:00
Christopher Wolfe
b110bd39b0 Updated msgpack requirement. 2019-02-15 12:52:21 -05:00
Christopher Wolfe
923e973809 Updated required package versions in README file. 2019-02-15 08:07:03 -05:00
Andrew Rabert
c87f2f001a
Merge pull request #14 from nvllsvm/trans
Use sprockets.mixins.mediatype transcoders
2019-01-10 16:39:17 -05:00
Andrew Rabert
d08540a5ca Fix dep ver 2019-01-10 13:07:05 -05:00
Andrew Rabert
8ab79eb55f Release version 1.1.1 2019-01-09 16:22:56 -05:00
Andrew Rabert
b3b06e5f99
Merge pull request #15 from noone234/fix-content-type
Fix content type
2019-01-09 16:20:05 -05:00
Christopher Wolfe
4ce0afcd6f New test requires Python v3. 2019-01-09 16:16:48 -05:00
Christopher Wolfe
3842ef8792 Tests _http_resp_deserialize() with a response that lacks a Content-Type
header.
2019-01-09 15:32:21 -05:00
Christopher Wolfe
259f6e30e7 When response header lacks Content-Type, _http_resp_deserialize() gives up.
It does not try to deserialize the response body.
2019-01-09 13:52:54 -05:00
Andrew Rabert
2368b24af3 Fix travis
Also move doc requirements to requires dir
2018-12-20 01:48:19 -05:00
Andrew Rabert
f6b0f5fb96 Drop support for Tornado < 5
Required by sprockets.mixins.mediatype
2018-12-19 20:33:48 -05:00
Andrew Rabert
870446f2bc Python 3.7 syntax updates 2018-12-19 20:33:46 -05:00
Andrew Rabert
091dd00b44 Drop support for Python < 3.7
Necessary to use sprockets.mixins.mediatype >=2
2018-12-19 20:31:44 -05:00
Andrew Rabert
23d6e449ee Use sprockets.mixins.mediatype transcoders
This makes both the server and client consistent in how it encodes and
decodes content.
2018-12-19 20:25:47 -05:00
Andrew Rabert
3156db2bac Fix doc header 2018-10-11 14:58:13 -04:00
Andrew Rabert
b593214b89 Release version 1.1.0 2018-10-11 14:54:39 -04:00
Gavin M. Roy
df5103fcb9
Merge pull request #13 from nvllsvm/warning
Log warning headers
2018-09-21 11:14:06 -04:00
Andrew Rabert
5477341233 Log warning headers 2018-09-20 14:51:38 -04:00
Andrew Rabert
f6795f8663 Release version 1.0.9 (for real) 2018-08-07 16:11:44 -04:00
Andrew Rabert
9ea803523a Release version 1.0.9 2018-08-07 16:01:15 -04:00
Andrew Rabert
0c3c65af99 Support Tornado < 6 2018-08-07 16:00:13 -04:00
Andrew Rabert
459230be69 Add support for Python 3.6 and 3.7 2018-08-07 15:59:58 -04:00
Andrew Rabert
bcd89a05d6 Version 1.0.8 2018-02-07 16:18:50 -05:00
Ryan Mclean
9e94f18cfa
Merge pull request #8 from nvllsvm/fixattemptlog
Fix logged max attempts value
2018-02-07 16:15:31 -05:00
Andrew Rabert
5638f4836b Fix README links 2018-02-07 14:51:15 -05:00
Andrew Rabert
62c9c843c6
Merge pull request #9 from nvllsvm/additional_kwargs
Expose additional fetch parameters
2018-02-07 14:45:37 -05:00
Andrew Rabert
0869cb20f0 Add validate_cert kwarg 2018-02-07 13:13:01 -05:00
Andrew Rabert
5b747b5f01 Add max_redirects kwarg 2018-02-07 13:12:46 -05:00
Andrew Rabert
6a23dbbf55 Fix logged max attempts value 2018-02-06 17:20:53 -05:00
Gavin M. Roy
ca977563ad Merge pull request #3 from nvllsvm/dev
Remove unnecessary from README
2017-10-24 11:53:06 -04:00
Gavin M. Roy
881726d770 Fix the requirements 2017-10-19 10:37:00 -04:00
Gavin M. Roy
07339af919 Change the hard pin on u-msgpack-python 2017-10-19 10:34:25 -04:00
Gavin M. Roy
b742e1526e Merge pull request #6 from dave-shawley/make-retries-configurable
Make retries configurable
2017-08-16 14:53:16 -04:00
Dave Shawley
6b5999794a Release max_http_attempts kwarg (1.0.6) 2017-08-16 14:36:02 -04:00
Dave Shawley
2413f9965f Add max_http_attempts keyword arg. 2017-08-16 14:33:42 -04:00
Brian Korty
bdca8aed69 Merge pull request #5 from bkorty/master
Bump the version to 1.0.5
2017-08-07 14:23:50 -04:00
Brian Korty
3138885d37 Bump the version to 1.0.5
Fix a small typo in the comments and bump the version to 1.0.5
2017-08-07 14:17:53 -04:00
dave-shawley
c9ed904bd5 Merge pull request #4 from bkorty/master
Expose additional tornado request features.
2017-08-07 13:54:07 -04:00