PyWebIO v1.3.3 Documentation
to open the PyWebIO application aiohttp Use pywebio.platform.aiohttp.webio_handler() to get the Request Handler coroutine for running Py- WebIO applications in aiohttp: from aiohttp import web from pywebio routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/', homepage), Mount('/tool' Django) and spawn multiple workers to handle requests, the request may be dispatched to a process that does not hold the session to which the request belongs. So you can only start one worker to handle requests0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.1 Documentation
to open the PyWebIO application aiohttp Use pywebio.platform.aiohttp.webio_handler() to get the Request Handler coroutine for running Py- WebIO applications in aiohttp: from aiohttp import web from pywebio routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/', homepage), Mount('/tool' Django) and spawn multiple workers to handle requests, the request may be dispatched to a process that does not hold the session to which the request belongs. So you can only start one worker to handle requests0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.0 Documentation
to open the PyWebIO application aiohttp Use pywebio.platform.aiohttp.webio_handler() to get the Request Handler coroutine for running Py- WebIO applications in aiohttp: from aiohttp import web from pywebio routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/', homepage), Mount('/tool' Django) and spawn multiple workers to handle requests, the request may be dispatched to a process that does not hold the session to which the request belongs. So you can only start one worker to handle requests0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.3.2 Documentation
to open the PyWebIO application aiohttp Use pywebio.platform.aiohttp.webio_handler() to get the Request Handler coroutine for running Py- WebIO applications in aiohttp: from aiohttp import web from pywebio routing import Route, Mount from pywebio.platform.fastapi import webio_routes async def homepage(request): return JSONResponse({'hello': 'world'}) app = Starlette(routes=[ Route('/', homepage), Mount('/tool' Django) and spawn multiple workers to handle requests, the request may be dispatched to a process that does not hold the session to which the request belongs. So you can only start one worker to handle requests0 码力 | 100 页 | 1.34 MB | 1 年前3PyWebIO v1.6.1 Documentation
pywebio.input.input_group(label='', inputs=None, validate=None, cancelable=False) Input group. Request a set of inputs from the user at once. Parameters • label (str) – Label of input group. • inputs 'websocket', 'http' • request (object): The request object when creating the current session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado HTTPServerRequest – When using Flask, request is instance of flask.Request – When using Django, request is instance of django.http.HttpRequest – When using aiohttp, request is instance of aiohttp.web.BaseRequest0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.2 Documentation
pywebio.input.input_group(label='', inputs=None, validate=None, cancelable=False) Input group. Request a set of inputs from the user at once. Parameters • label (str) – Label of input group. • inputs 'websocket', 'http' • request (object): The request object when creating the current session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado HTTPServerRequest – When using Flask, request is instance of flask.Request – When using Django, request is instance of django.http.HttpRequest – When using aiohttp, request is instance of aiohttp.web.BaseRequest0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.4.0 Documentation
pywebio.input.input_group(label='', inputs=None, validate=None, cancelable=False) Input group. Request a set of inputs from the user at once. Parameters • label (str) – Label of input group. • inputs 'websocket', 'http' • request (object): The request object when creating the current session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado HTTPServerRequest – When using Flask, request is instance of flask.Request – When using Django, request is instance of django.http.HttpRequest – When using aiohttp, request is instance of aiohttp.web.BaseRequest0 码力 | 102 页 | 1.35 MB | 1 年前3PyWebIO v1.6.2 Documentation
pywebio.input.input_group(label='', inputs=None, validate=None, cancelable=False) Input group. Request a set of inputs from the user at once. Parameters • label (str) – Label of input group. • inputs 'websocket', 'http' • request (object): The request object when creating the current session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado HTTPServerRequest – When using Flask, request is instance of flask.Request – When using Django, request is instance of django.http.HttpRequest – When using aiohttp, request is instance of aiohttp.web.BaseRequest0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.0 Documentation
pywebio.input.input_group(label='', inputs=None, validate=None, cancelable=False) Input group. Request a set of inputs from the user at once. Parameters • label (str) – Label of input group. • inputs 'websocket', 'http' • request (object): The request object when creating the current session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado HTTPServerRequest – When using Flask, request is instance of flask.Request – When using Django, request is instance of django.http.HttpRequest – When using aiohttp, request is instance of aiohttp.web.BaseRequest0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.1 Documentation
pywebio.input.input_group(label='', inputs=None, validate=None, cancelable=False) Input group. Request a set of inputs from the user at once. Parameters • label (str) – Label of input group. • inputs 'websocket', 'http' • request (object): The request object when creating the current session. Depending on the backend server, the type of request can be: – When using Tornado, request is instance of tornado HTTPServerRequest – When using Flask, request is instance of flask.Request – When using Django, request is instance of django.http.HttpRequest – When using aiohttp, request is instance of aiohttp.web.BaseRequest0 码力 | 108 页 | 1.37 MB | 1 年前3
共 86 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9