Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 133 for Routen (0.05 seconds)

  1. fastapi/routing.py

            if responses is None:
                responses = {}
            for route in router.routes:
                if isinstance(route, APIRoute):
                    combined_responses = {**responses, **route.responses}
                    use_response_class = get_value_or_default(
                        route.response_class,
                        router.default_response_class,
                        default_response_class,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 174.6K bytes
    - Click Count (0)
  2. tests/test_modules_same_name_body/app/main.py

    from fastapi import FastAPI
    
    from . import a, b
    
    app = FastAPI()
    
    app.include_router(a.router, prefix="/a")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Jun 28 17:35:16 GMT 2019
    - 150 bytes
    - Click Count (0)
  3. tests/test_modules_same_name_body/app/a.py

    from fastapi import APIRouter, Body
    
    router = APIRouter()
    
    
    @router.post("/compute")
    def compute(a: int = Body(), b: str = Body()):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 160 bytes
    - Click Count (0)
  4. docs/ru/docs/tutorial/bigger-applications.md

    Вместо того чтобы импортировать только переменную `router`, мы импортируем непосредственно суб-модуль `items`.
    
    Мы делаем это потому, что у нас есть ещё одна переменная `router` в суб-модуле `users`.
    
    Если бы мы импортировали их одну за другой, как показано в примере:
    
    ```Python
    from .routers.items import router
    from .routers.users import router
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Dec 11 21:25:03 GMT 2025
    - 30.4K bytes
    - Click Count (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

    import okhttp3.Response
    import okhttp3.Route
    
    class RecordingOkAuthenticator(
      val credential: String?,
      val scheme: String?,
    ) : Authenticator {
      val responses = mutableListOf<Response>()
      val routes = mutableListOf<Route>()
    
      fun onlyResponse() = responses.single()
    
      fun onlyRoute() = routes.single()
    
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  6. docs_src/bigger_applications/app_an_py39/internal/admin.py

    from fastapi import APIRouter
    
    router = APIRouter()
    
    
    @router.post("/")
    async def update_admin():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 147 bytes
    - Click Count (0)
  7. src/main/java/jcifs/pac/PacMac.java

         *
         * @param data the input data to expand
         * @param outlen the desired output length in bytes
         * @return the n-folded data of the specified length
         */
        public static byte[] expandNFold(byte[] data, int outlen) {
            int lcm = lcm(outlen, data.length);
            byte[] buf = new byte[outlen];
            int carry = 0;
            for (int i = lcm - 1; i >= 0; i--) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9K bytes
    - Click Count (0)
  8. tests/test_modules_same_name_body/app/b.py

    from fastapi import APIRouter, Body
    
    router = APIRouter()
    
    
    @router.post("/compute/")
    def compute(a: int = Body(), b: str = Body()):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 161 bytes
    - Click Count (0)
  9. src/test/java/jcifs/pac/PacMacTest.java

         */
        @Test
        void testExpandNFold() {
            // Test basic functionality
            byte[] data = { 1, 2, 3 };
            int outlen = 5;
            byte[] expanded = PacMac.expandNFold(data, outlen);
            assertNotNull(expanded);
            assertEquals(outlen, expanded.length);
    
            // Test vectors from RFC 3961 Appendix A.1
            // 64-fold("012345")
            verifyNfold("012345", 8,
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  10. tests/test_custom_middleware_exception.py

                return
    
            wrapper = self.receive_wrapper(receive)
            await self.app(scope, wrapper, send)
    
    
    @router.post("/middleware")
    def run_middleware(file: UploadFile = File(..., description="Big File")):
        return {"message": "OK"}
    
    
    app.include_router(router)
    app.add_middleware(ContentSizeLimitMiddleware, max_content_size=2**8)
    
    
    client = TestClient(app)
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Aug 25 21:44:40 GMT 2022
    - 2.8K bytes
    - Click Count (0)
Back to Top