Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 237 for Case (0.19 sec)

  1. docs/en/docs/tutorial/path-params.md

    You can declare the type of a path parameter in the function, using standard Python type annotations:
    
    ```Python hl_lines="7"
    {!../../../docs_src/path_params/tutorial002.py!}
    ```
    
    In this case, `item_id` is declared to be an `int`.
    
    !!! check
        This will give you editor support inside of your function, with error checks, completion, etc.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/response-model.md

    ### Return a Response Directly
    
    The most common case would be [returning a Response directly as explained later in the advanced docs](../advanced/response-directly.md){.internal-link target=_blank}.
    
    ```Python hl_lines="8  10-11"
    {!> ../../../docs_src/response_model/tutorial003_02.py!}
    ```
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/behind-a-proxy.md

    ## Proxy with a stripped path prefix
    
    Having a proxy with a stripped path prefix, in this case, means that you could declare a path at `/app` in your code, but then, you add a layer on top (the proxy) that would put your **FastAPI** application under a path like `/api/v1`.
    
    In this case, the original path `/app` would actually be served at `/api/v1/app`.
    
    Even though all your code is written assuming there's just `/app`.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  4. docs/en/docs/tutorial/security/first-steps.md

    !!! info
        A "bearer" token is not the only option.
    
        But it's the best one for our use case.
    
        And it might be the best for most use cases, unless you are an OAuth2 expert and know exactly why there's another option that suits better your needs.
    
        In that case, **FastAPI** also provides you with the tools to build it.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/dataclasses.md

    In some cases, you might still have to use Pydantic's version of `dataclasses`. For example, if you have errors with the automatically generated API documentation.
    
    In that case, you can simply swap the standard `dataclasses` with `pydantic.dataclasses`, which is a drop-in replacement:
    
    ```{ .python .annotate hl_lines="1  5  8-11  14-17  23-25  28" }
    {!../../../docs_src/dataclasses/tutorial003.py!}
    ```
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/en/docs/deployment/concepts.md

    Of course, there are some cases where there's no problem in running the previous steps multiple times, in that case, it's a lot easier to handle.
    
    !!! tip
        Also, keep in mind that depending on your setup, in some cases you **might not even need any previous steps** before starting your application.
    
        In that case, you wouldn't have to worry about any of this. 🤷
    
    ### Examples of Previous Steps Strategies
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/security/index.md

    !!! tip
        The next sections are **not necessarily "advanced"**.
    
        And it's possible that for your use case, the solution is in one of them.
    
    ## Read the Tutorial first
    
    The next sections assume you already read the main [Tutorial - User Guide: Security](../../tutorial/security/index.md){.internal-link target=_blank}.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 633 bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescValueParameterSymbol.kt

    import org.jetbrains.kotlin.analysis.api.descriptors.symbols.calculateHashCode
    import org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.base.KtFe10DescSymbol
    import org.jetbrains.kotlin.analysis.api.descriptors.symbols.descriptorBased.base.toKtType
    import org.jetbrains.kotlin.analysis.api.descriptors.symbols.isEqualTo
    import org.jetbrains.kotlin.analysis.api.descriptors.symbols.pointers.KtFe10NeverRestoringSymbolPointer
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        fun redactHeader(name: String) {
          val newHeadersToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER)
          newHeadersToRedact += headersToRedact
          newHeadersToRedact += name
          headersToRedact = newHeadersToRedact
        }
    
        fun redactQueryParams(vararg name: String) {
          val newQueryParamsNameToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER)
          newQueryParamsNameToRedact += queryParamsNameToRedact
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

                 *
                 * In such case, [FirQualifiedAccessExpression] representing the call references
                 * the original `Base.bar` callable symbol instead of `MyObject.bar`, because there are
                 * no separate symbol for that case.
                 *
                 * Java statics present a similar case - they can be imported not only from the declaring class,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 24.2K bytes
    - Viewed (0)
Back to top