Merge pull request #562 from lixxu/master
update function name as it not halt request actually
This commit is contained in:
commit
7beb065be3
|
@ -66,7 +66,7 @@ Using blueprints allows you to also register middleware globally.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@bp.middleware
|
@bp.middleware
|
||||||
async def halt_request(request):
|
async def print_on_request(request):
|
||||||
print("I am a spy")
|
print("I am a spy")
|
||||||
|
|
||||||
@bp.middleware('request')
|
@bp.middleware('request')
|
||||||
|
|
|
@ -75,4 +75,3 @@ Out of the box there are just a few predefined values which can be overwritten w
|
||||||
| ----------------- | --------- | --------------------------------- |
|
| ----------------- | --------- | --------------------------------- |
|
||||||
| REQUEST_MAX_SIZE | 100000000 | How big a request may be (bytes) |
|
| REQUEST_MAX_SIZE | 100000000 | How big a request may be (bytes) |
|
||||||
| REQUEST_TIMEOUT | 60 | How long a request can take (sec) |
|
| REQUEST_TIMEOUT | 60 | How long a request can take (sec) |
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user