Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 834 for use (3.23 sec)

  1. docs/en/docs/advanced/wsgi.md

    You can mount WSGI applications as you saw with [Sub Applications - Mounts](sub-applications.md){.internal-link target=_blank}, [Behind a Proxy](behind-a-proxy.md){.internal-link target=_blank}.
    
    For that, you can use the `WSGIMiddleware` and use it to wrap your WSGI application, for example, Flask, Django, etc.
    
    ## Using `WSGIMiddleware`
    
    You need to import `WSGIMiddleware`.
    
    Then wrap the WSGI (e.g. Flask) app with the middleware.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/api/services/model/ProfileActivationContext.java

        /**
         * Gets the system properties to use for interpolation and profile activation. The system properties are collected
         * from the runtime environment like {@link System#getProperties()} and environment variables.
         *
         * @return The execution properties, never {@code null}.
         */
        Map<String, String> getSystemProperties();
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

    import okhttp3.tls.internal.TlsUtil.localhost
    
    /**
     * OkHttp is usually tested with functional tests: these use public APIs to confirm behavior against
     * MockWebServer. In cases where logic is particularly tricky, we use unit tests. This class makes
     * it easy to get sample values to use in such tests.
     *
     * This class is pretty fast and loose with default values: it attempts to provide values that are
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/extra-models.md

    !!! info
        In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
    
        The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2.
    
    ### About `**user_in.dict()`
    
    #### Pydantic's `.dict()`
    
    `user_in` is a Pydantic model of class `UserIn`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  5. fastapi/params.py

        def __init__(
            self, dependency: Optional[Callable[..., Any]] = None, *, use_cache: bool = True
        ):
            self.dependency = dependency
            self.use_cache = use_cache
    
        def __repr__(self) -> str:
            attr = getattr(self.dependency, "__name__", type(self.dependency).__name__)
            cache = "" if self.use_cache else ", use_cache=False"
            return f"{self.__class__.__name__}({attr}{cache})"
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  6. docs/en/docs/advanced/dataclasses.md

    !!! info
        Keep in mind that dataclasses can't do everything Pydantic models can do.
    
        So, you might still need to use Pydantic models.
    
        But if you have a bunch of dataclasses laying around, this is a nice trick to use them to power a web API using FastAPI. 🤓
    
    ## Dataclasses in `response_model`
    
    You can also use `dataclasses` in the `response_model` parameter:
    
    ```Python hl_lines="1  7-13  19"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

    /*
     * Copyright (C) 2022 Square, Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. CHANGELOG.md

        without stabilizing these new APIs first.
    
        Do not use these experimental APIs in modules that may be executed using a version of OkHttp
        different from the version that the module was compiled with. Do not use them in published
        libraries. Do not use them if you aren't willing to track changes to them.
    
     *  Breaking: Drop support for Kotlin Multiplatform.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

    /*
     * Copyright (C) 2010 The Android Open Source Project
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableBiMap.java

        throw new InvalidObjectException("Use SerializedForm");
      }
    
      /**
       * Not supported. Use {@link #toImmutableBiMap} instead. This method exists only to hide {@link
       * ImmutableMap#toImmutableMap(Function, Function)} from consumers of {@code ImmutableBiMap}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link ImmutableBiMap#toImmutableBiMap}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
Back to top