Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for reglist (0.08 seconds)

  1. tests/test_ws_dependencies.py

    from fastapi import APIRouter, Depends, FastAPI, WebSocket
    from fastapi.testclient import TestClient
    
    
    def dependency_list() -> list[str]:
        return []
    
    
    DepList = Annotated[list[str], Depends(dependency_list)]
    
    
    def create_dependency(name: str):
        def fun(deps: DepList):
            deps.append(name)
    
        return Depends(fun)
    
    
    router = APIRouter(dependencies=[create_dependency("router")])
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  2. docs_src/custom_request_and_route/tutorial001_an_py39.py

    from fastapi.routing import APIRoute
    
    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 988 bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/app/service/ElevateWordService.java

                            mapping.setElevateWordId(elevateWordId);
                            mapping.setLabelTypeId(id);
                            newList.add(mapping);
                        }
                    }
                    list.removeAll(matchedList);
                    elevateWordToLabelBhv.batchInsert(newList, op -> {
                        op.setRefreshPolicy(Constants.TRUE);
                    });
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  4. docs_src/custom_request_and_route/tutorial001_py310.py

    from fastapi.routing import APIRoute
    
    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 976 bytes
    - Click Count (0)
  5. docs_src/custom_request_and_route/tutorial001_py39.py

    from fastapi.routing import APIRoute
    
    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 967 bytes
    - Click Count (0)
  6. docs_src/custom_request_and_route/tutorial001_an_py310.py

    from fastapi.routing import APIRoute
    
    
    class GzipRequest(Request):
        async def body(self) -> bytes:
            if not hasattr(self, "_body"):
                body = await super().body()
                if "gzip" in self.headers.getlist("Content-Encoding"):
                    body = gzip.decompress(body)
                self._body = body
            return self._body
    
    
    class GzipRoute(APIRoute):
        def get_route_handler(self) -> Callable:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 1015 bytes
    - Click Count (0)
  7. fastapi/dependencies/utils.py

            processed_keys.add(alias or get_validation_alias(field))
    
        for key in received_params.keys():
            if key not in processed_keys:
                if hasattr(received_params, "getlist"):
                    value = received_params.getlist(key)
                    if isinstance(value, list) and (len(value) == 1):
                        params_to_process[key] = value[0]
                    else:
                        params_to_process[key] = value
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 37.6K bytes
    - Click Count (3)
  8. docs/de/docs/advanced/advanced-dependencies.md

    Die Absicht war, Ressourcen nicht länger als nötig zu halten, während darauf gewartet wird, dass die Response durchs Netzwerk reist.
    
    Diese Änderung bedeutete auch, dass bei Rückgabe einer `StreamingResponse` der Exit-Code der Abhängigkeit mit `yield` bereits ausgeführt worden wäre.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 17:32:56 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/dependencies/index.md

    ## Usar `async` o no usar `async` { #to-async-or-not-to-async }
    
    Como las dependencias también serán llamadas por **FastAPI** (lo mismo que tus *path operation functions*), las mismas reglas aplican al definir tus funciones.
    
    Puedes usar `async def` o `def` normal.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  10. docs/es/docs/help-fastapi.md

    * No te preocupes demasiado por cosas como los estilos de los mensajes de commit, yo haré squash y merge personalizando el commit manualmente.
    
    * Tampoco te preocupes por las reglas de estilo, hay herramientas automatizadas verificando eso.
    
    Y si hay alguna otra necesidad de estilo o consistencia, pediré directamente eso, o agregaré commits encima con los cambios necesarios.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 10:15:01 GMT 2025
    - 14.8K bytes
    - Click Count (0)
Back to Top