Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 321 Bytes

context.py.md

File metadata and controls

18 lines (11 loc) · 321 Bytes

Generated from context.py on 2022-10-11 12:34:14.972233

peeringdb_server.context

Define custom context managers.

Functions


current_request

def current_request(request=None)

Will yield the current request, if there is one.

To se the current request for the context pass it to the request parameter.