Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
devwiki:litestar [2023/08/25 09:11] – ying | devwiki:litestar [2023/08/29 07:51] – [Concepts] ying | ||
---|---|---|---|
Line 18: | Line 18: | ||
async def func_a() -> str: | async def func_a() -> str: | ||
- | # same | + | # same as below, get("/" |
func_a = get("/" | func_a = get("/" | ||
</ | </ | ||
+ | * ASGI: Asynchronous Server Gateway Interface | ||
+ | * newer for python, non block commu | ||
+ | * WSGI: Web Server Gateway Interface | ||
+ | |||
+ | * litestar use Uvicorn ASGI server, which support http, websockets and other realtime protocol | ||
+ | * https:// | ||
+ | |||
+ | * litestar auto create the scheme and scheme tryout page | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * Litestar generates an OpenAPI schema based on the route handlers, which can then be used by Swagger to set up the interactive documentation. |