Handlers¶
Warning
The current page still doesn't have a translation for this language.
But you can help translating it: Contributing.
This is the reference for the Handlers that contains all the parameters,
attributes and functions.
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
- path
- summary
- description
- status_code
- content_encoding
- content_media_type
- include_in_schema
- background
- dependencies
- exception_handlers
- permissions
- middleware
- media_type
- response_class
- response_cookies
- response_headers
- deprecated
- security
- operation_id
- response_description
- responses
ravyn.websocket
¶
websocket(
path=None,
*,
name=None,
dependencies=None,
exception_handlers=None,
middleware=None,
permissions=None,
before_request=None,
after_request=None,
)
| PARAMETER | DESCRIPTION |
|---|---|
path
|
Relative path of the Example Example with parameters
TYPE:
|
name
|
The name for the Gateway. The name can be reversed by
TYPE:
|
dependencies
|
A dictionary of string and Inject instances enable application level dependency injection.
TYPE:
|
exception_handlers
|
A dictionary of exception types (or custom exceptions) and the handler functions on an application top level. Exception handler callables should be of the form of
TYPE:
|
middleware
|
A list of middleware to run for every request. The middlewares of an Include will be checked from top-down or Lilya Middleware as they are both converted internally. Read more about Python Protocols.
TYPE:
|
permissions
|
A list of permissions to serve the application incoming requests (HTTP and Websockets).
TYPE:
|
before_request
|
A list of events that are triggered before the application processes the request.
TYPE:
|
after_request
|
A list of events that are triggered after the application processes the request.
TYPE:
|
Source code in ravyn/routing/handlers.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
- path
- dependencies
- exception_handlers
- permissions
- middleware