sanic/examples
Harsha Narayana 2c25af8cf5
GIT-2045: enable versioning and strict slash on BlueprintGroup (#2047)
* GIT-2045: enable versioning and strict slash on BlueprintGroup

* GIT-2045: convert named tuple into typed format + unit tests

* GIT-2045: add example code for versioned bpg

* GIT-2045: None value for strict slashes check

* GIT-2045: refactor handler types and add benchmark for urlparse

* GIT-2045: reduce urlparse benchmark iterations

* GIT-2045: add unit test and url merge behavior

* GIT-2045: cleanup example code and remove print

* GIT-2045: add test for slash duplication avoidence

* GIT-2045: fix issue with tailing / getting appended

* GIT-2045: use Optional instead of Union for Typing

* GIT-2045: use string for version arg

* GIT-2045: combine optional with union
2021-03-07 14:54:45 +02:00
..
request_stream Pausable response streams (#1179) 2018-08-18 18:12:13 -07:00
add_task_sanic.py feat(exapmles): add add_task_sanic.py 2017-08-20 11:11:14 +08:00
amending_request_object.py Add example of amending request object 2019-01-02 14:52:25 +08:00
authorized_sanic.py Reduce nesting for the sample authentication decorator (#1715) 2019-11-14 14:57:41 -06:00
blueprint_middlware_execution_order.py Reverse named_response_middlware execution order, to match normal response middleware execution order. 2020-05-14 09:54:47 +10:00
blueprints.py Streaming Server (#1876) 2021-01-11 00:45:36 +02:00
delayed_response.py Socket binding implemented properly for IPv6 and UNIX sockets. (#1641) 2020-06-29 08:55:32 +03:00
docker-compose.yml Added examples and form processing 2016-10-09 15:28:31 -07:00
Dockerfile Added examples and form processing 2016-10-09 15:28:31 -07:00
exception_monitoring.py reverted back to default 0.0.0.0 host 2017-06-01 14:01:13 -07:00
limit_concurrency.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
log_request_id.py Fix #1551 missing parameter in create_server 2019-04-15 22:18:35 +02:00
logdna_example.py add monitoring examples and documents 2018-12-28 10:22:28 +05:30
modify_header_example.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
override_logging.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
pytest_xdist.py Let SanicTestClient has its own port 2017-11-06 17:29:32 +09:00
raygun_example.py add monitoring examples and documents 2018-12-28 10:22:28 +05:30
redirect_example.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
request_timeout.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
rollbar_example.py add monitoring examples and documents 2018-12-28 10:22:28 +05:30
run_asgi.py Streaming Server (#1876) 2021-01-11 00:45:36 +02:00
run_async_advanced.py Fixes "after_server_start" when using return_asyncio_server. (#1676) 2019-09-16 10:59:16 -07:00
run_async.py Fix #1551 missing parameter in create_server 2019-04-15 22:18:35 +02:00
sentry_example.py add monitoring examples and documents 2018-12-28 10:22:28 +05:30
simple_async_view.py fix one example and add one example (#1257) 2018-07-11 01:42:34 -07:00
simple_server.py Updated examples for 0.5.0 2017-04-11 20:34:55 +00:00
teapot.py add status codes and teapot example 2017-09-13 14:08:29 +02:00
try_everything.py rename function to something else 2018-03-29 15:57:10 -07:00
unix_socket.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
url_for_example.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
versioned_blueprint_group.py GIT-2045: enable versioning and strict slash on BlueprintGroup (#2047) 2021-03-07 14:54:45 +02:00
vhosts.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00
websocket.html websocket support, using websockets package 2017-02-27 22:35:28 -08:00
websocket.py Clean up of examples. Removes non-core examples, optimizes and restyles remaining to strictly follow PEP 8 styling guidelines. Non-Core examples will be moved to Wiki. 2017-06-01 11:53:05 -07:00