Commit graph

17 commits

Author SHA1 Message Date
Andrew Rabert
52c1d5084d Cast url to str
Allows easy use of abstractions like yarl.URL
2019-05-07 11:04:51 -04:00
Gavin M. Roy
e764e304d6 Fix consumer User-Agent behavior 2019-04-01 17:38:41 -04:00
Gavin M. Roy
f65b88f8e4 Fix consumer user-agent behavior 2019-04-01 17:25:39 -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
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
0c7fb45408 Unused assignment 2019-04-01 09:50:59 -04:00
Andrew Rabert
c87f2f001a
Merge pull request #14 from nvllsvm/trans
Use sprockets.mixins.mediatype transcoders
2019-01-10 16:39:17 -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
Andrew Rabert
870446f2bc Python 3.7 syntax updates 2018-12-19 20:33:46 -05:00
Brian Korty
196dfd09d5 Add HTTP_MAX_CLIENTS setting.
Add in support for the HTTP_MAX_CLIENTS environment variable to override the
default tornado settings.
2017-08-07 13:08:20 -04:00
Brian Korty
e1c7388047 Add support for allow_nonstandard_methods.
Add allow_nonstandard_methods to the http_fetch method to allow a client to
send HTTP requests that don't strictly adhere to the HTTP specification.
2017-08-07 11:08:06 -04:00
Ryan Mclean
cc886ab502 Add support for passing the user_agent parameter per request 2017-05-12 12:00:23 -04:00
Gavin M. Roy
e3c4ba5e2a See if this fixes missing 429 in Python 2 2017-04-26 18:01:23 -04:00
Gavin M. Roy
8eaf4c5d92 Initial version 2017-04-26 17:56:21 -04:00