sanic/tests
Jeong YunWon 11f3c79a77 Feature: Routing overload
When user specifies HTTP methods to function handlers, it automatically
will be overloaded unless they duplicate.

Example:

    # This is a new route. It works as before.
    @app.route('/overload', methods=['GET'])
    async def handler1(request):
        return text('OK1')

    # This is the exiting route but a new method. They are merged and
    # work as combined. The route will serve all of GET, POST and PUT.
    @app.route('/overload', methods=['POST', 'PUT'])
    async def handler2(request):
        return text('OK2')

    # This is the existing route and PUT method is the duplicated method.
    # It raises RouteExists.
    @app.route('/overload', methods=['PUT', 'DELETE'])
    async def handler3(request):
	return text('Duplicated')
2017-01-19 07:12:45 +09:00
..
performance Make golang performance test return JSON instead of string 2016-12-24 10:28:34 +01:00
static Rewrite static files tests 2016-12-24 18:18:56 -08:00
test_bad_request.py Change HttpParserError process 2016-12-18 09:25:39 +09:00
test_blueprints.py add ability to override default host in blueprint 2017-01-10 22:08:15 -08:00
test_cookies.py test for http2 lowercase header cookies 2016-12-03 15:19:24 -05:00
test_custom_protocol.py Add test and example for custom protocol 2016-12-26 23:41:10 +09:00
test_exceptions_handler.py html and tests pass 2017-01-12 19:54:34 -05:00
test_exceptions.py html and tests pass 2017-01-12 19:54:34 -05:00
test_logging.py update logging placement 2017-01-17 15:49:17 -08:00
test_middleware.py Added blueprint order test and used deques to add blueprints 2016-10-24 02:09:07 -07:00
test_multiprocessing.py Change the skips to actual pytest skips 2017-01-08 11:55:08 -06:00
test_payload_too_large.py Change Payload Too Large process 2016-12-04 10:50:32 +09:00
test_request_data.py Adding a new line 2016-11-23 11:03:00 -06:00
test_request_timeout.py Fix test_request_timeout.py 2016-12-06 10:44:08 +09:00
test_requests.py add headers none test 2017-01-14 00:45:04 -05:00
test_response.py Add test for PR: #215 2016-12-24 18:47:15 -08:00
test_routes.py Feature: Routing overload 2017-01-19 07:12:45 +09:00
test_server_events.py Update request.form to work with __getitem__ 2017-01-11 16:55:34 -06:00
test_static.py Rewrite static files tests 2016-12-24 18:18:56 -08:00
test_utf8.py Reformatted code to use spaces instead of tabs 2016-10-14 19:53:49 -07:00
test_vhosts.py add support for virtual hosts 2017-01-08 18:46:29 -08:00
test_views.py removed debug from test 2017-01-07 07:14:27 +02:00