Andrew Rabert
282f8258ca
Allow customization of the Server header
2022-04-12 11:05:34 -04:00
dave-shawley
11315f1653
Merge pull request #44 from nvllsvm/log_request
...
Add custom request logging
2022-03-16 08:39:33 -04:00
Andrew Rabert
0ff358a67e
Add reason to acccess log
2022-03-15 18:41:24 -04:00
Andrew Rabert
0c446ca73c
Add custom request logging
2022-03-01 13:25:42 -05:00
Andrew Rabert
fc9a998ec8
Allow overriding sentry_sdk.init kwargs
2022-02-02 17:20:49 -05:00
Andrew Rabert
b9e2c3a7c5
Add optional sentry integration
2022-02-02 11:28:34 -05:00
Dave Shawley
5c103cde0e
Deprecation notice for sprockets.http.run.
...
sprockets.http.run will only accept sprockets.app.Application instances
in the near future. I'm doing this so that we can clean up the runner
code significantly as we move to using `async` and `await` instead of
futures.
2020-07-18 16:31:32 -04:00
Dave Shawley
9430941e4a
Use asyncio.all_tasks if it exists.
...
Python 3.9 removed ``asyncio.Task.all_tasks`` so I switched to using
``asyncio.all_tasks`` instead. The ``all_tasks`` function was added
in 3.7 and ``Task.all_tasks`` was deprecated then.
2020-07-18 08:50:20 -04:00
Dave Shawley
e6ef43c050
Deprecate calling run without a logging config.
2019-09-03 07:29:20 -04:00
Dave Shawley
b7b787ee31
Add _ShutdownHandler tests.
2019-09-03 07:05:09 -04:00
Dave Shawley
3c71ae0313
Add missing tests for top-level
2019-09-03 07:05:09 -04:00
Dave Shawley
cd478d0a3d
Add sprockets.http.testing
2019-09-02 08:09:34 -04:00
Dave Shawley
7991f99807
Make shutdown timings configurable.
2019-09-02 08:01:09 -04:00
Andrew Rabert
a981861bf1
Use python 3 super
2018-11-26 19:24:30 -05:00
Andrew Rabert
78e063963d
Remove mock and update tests
2018-11-26 19:03:37 -05:00
Andrew Rabert
234fb6d479
Support only tornado>=5.0
...
- Drop support for all versions of tornado prior to 5.0. This negates
the need for version-aware conditionals that previous existed.
- Update tox to test Tornado 5.0 and the unpinned latest version.
2018-11-26 19:03:37 -05:00
Andrew Rabert
74aaf7bf01
Add support for Tornado >= 5
2018-11-26 19:03:21 -05:00
Gavin M. Roy
7ef88a34ae
Merge pull request #19 from nvllsvm/master
...
Avoid RecursionError in test
2018-01-29 11:26:43 -05:00
Dave Shawley
fb909088d9
Enable reuse_port option to HTTPServer.bind.
...
This makes solutions that restart the process (e.g., envconsul) work
properly. Without port reuse, you will get a very unpleasant "port
already in use" when the service restarts.
This requires Tornado >= 4.4
2018-01-28 14:32:41 -05:00
Brian Korty
4109dd3885
Support max_body_size and max_buffer_size.
...
Allow max_body_size and max_buffer_size settings to be passed into the
underlying Tornado HTTPServer to override the default settings.
2018-01-24 20:07:12 -05:00
Andrew Rabert
4181abc542
Avoid RecursionError in test
...
A sleep value of 0.05 resulted in a RecursionError in some environments.
2017-06-08 17:01:51 -04:00
Dave Shawley
d7370ab5e6
Rename CallbackManager.run to start.
...
It was too easy to confuse this with Runner.run
2016-11-03 07:43:23 -04:00
Dave Shawley
531b796559
Add sprockets.http.app module.
...
This module separates out the application state management from the
mechanics of running the application. The former is destined for a
sub-class of tornado.web.Application (as app.Application) and the
latter remains in sprockets.http.runner.
2016-11-01 22:01:27 -04:00
Dave Shawley
2f263b0997
Add `httprun
` distutils command.
2016-06-13 23:23:17 -04:00
Gavin M. Roy
d17c668f83
Add async shutdown support an on_start callbacks
2016-03-10 17:10:31 -05:00
Dave Shawley
53b09b2e32
tests: Add comprehensive tests for Runner class.
2016-01-28 07:53:01 -05:00
Dave Shawley
03e85b440c
Call sys.exit() when a before_run callback raises an exception.
2016-01-28 07:53:01 -05:00
Dave Shawley
e906e6f33e
tests: Add callback exception testing.
2016-01-28 07:08:50 -05:00
Dave Shawley
5ba9e5fc59
tests: Refactor callback testing to consolidate code.
2016-01-28 07:02:06 -05:00
Dave Shawley
a1ba8874f6
Add support for `before_run
` callbacks.
2016-01-27 18:24:02 -05:00
Dave Shawley
d8253fcef2
tests: Add tests for the shutdown callback.
2016-01-27 16:02:45 -05:00
Dave Shawley
92ca0bf70e
Add log_config parameter to sprockets.http.run.
2015-12-10 10:48:25 -05:00
Dave Shawley
2d043ff752
Move _get_logging_config into sprockets.http.
2015-12-10 10:44:52 -05:00
Dave Shawley
557989399c
Move logging.config.dictConfig into http.run.
2015-12-10 10:41:59 -05:00
Dave Shawley
2861d8ef93
Add tests for sprockets.http.run.
2015-12-10 10:22:10 -05:00
Gavin M. Roy
f028723e45
Use mediatype.ContentMixin if its also extended
2015-11-20 14:14:39 -05:00
Dave Shawley
a7c8d95847
ErrorWriter: Add support for format_traceback.
2015-11-20 07:25:05 -05:00
Dave Shawley
cdb655be1e
Add sprockets.http.mixins.ErrorWriter.
2015-11-19 17:29:07 -05:00
Dave Shawley
fea85275c4
tests: Rename ErrorWriterTests.
2015-11-19 11:54:23 -05:00
Dave Shawley
702c0a112f
Add support for log_message
kwarg.
2015-11-19 11:51:34 -05:00
Dave Shawley
31feab1275
ErrorLogger: Handle tornado.web.HTTPError.
2015-11-19 08:02:47 -05:00
Dave Shawley
704c6d34d8
Add LoggingHandler and ErrorLogger mixins.
2015-11-18 16:15:37 -05:00