File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ def run_server():
106
106
107
107
108
108
def use_connection () -> Request :
109
+ """Get the current ``Request``"""
109
110
value = use_context (Connection )
110
111
if value is None :
111
112
raise RuntimeError ("No established connection." )
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ async def serve_development_app(
65
65
66
66
67
67
def use_connection () -> request .Request :
68
+ """Get the current ``Request``"""
68
69
value = use_connection (Connection )
69
70
if value is None :
70
71
raise RuntimeError ("No established connection." )
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ async def serve_development_app(
70
70
71
71
72
72
def use_connection () -> WebSocket :
73
+ """Get the current ``WebSocket`` connection"""
73
74
value = use_context (Connection )
74
75
if value is None :
75
76
raise RuntimeError ("No established connection." )
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ async def serve_development_app(
73
73
74
74
75
75
def use_connection () -> HTTPServerRequest :
76
+ """Get the current ``HTTPServerRequest``"""
76
77
value = use_context (Connection )
77
78
if value is None :
78
79
raise RuntimeError ("No established connection." )
You can’t perform that action at this time.
0 commit comments