Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 285 for custom (3.34 sec)

  1. fastapi/encoders.py

        [FastAPI docs for JSON Compatible Encoder](https://fastapi.tiangolo.com/tutorial/encoder/).
        """
        custom_encoder = custom_encoder or {}
        if custom_encoder:
            if type(obj) in custom_encoder:
                return custom_encoder[type(obj)](obj)
            else:
                for encoder_type, encoder_instance in custom_encoder.items():
                    if isinstance(obj, encoder_type):
                        return encoder_instance(obj)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/KtFirAnnotationListForType.kt

                }
            }
        }
    }
    
    private fun ConeKotlinType.customAnnotationsWithLazyResolve(phase: FirResolvePhase): List<FirAnnotation> {
        val custom = attributes.custom ?: return emptyList()
        val annotations = custom.annotations.ifEmpty { return emptyList() }
    
        for (annotation in annotations) {
            val containerSymbol = (annotation as? FirAnnotationCall)?.containingDeclarationSymbol ?: continue
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        checkEntry(entry, "custom-bar", "custom-header", 55)
        entry = writer.dynamicTable[tableLength - 2]!!
        checkEntry(entry, "custom-baz", "custom-header", 55)
      }
    
      @Test
      fun readerEviction() {
        val headerBlock =
          headerEntries(
            "custom-foo",
            "custom-header",
            "custom-bar",
            "custom-header",
            "custom-baz",
            "custom-header",
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/additional-responses.md

    **FastAPI** will keep the additional information from `responses`, and combine it with the JSON Schema from your model.
    
    For example, you can declare a response with a status code `404` that uses a Pydantic model and has a custom `description`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  5. docs/en/mkdocs.yml

          advanced/async-sql-databases.md: how-to/async-sql-encode-databases.md
          advanced/nosql-databases.md: how-to/nosql-databases-couchbase.md
          advanced/graphql.md: how-to/graphql.md
          advanced/custom-request-and-route.md: how-to/custom-request-and-route.md
          advanced/conditional-openapi.md: how-to/conditional-openapi.md
          advanced/extending-openapi.md: how-to/extending-openapi.md
      mkdocstrings:
        handlers:
          python:
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. pdm_build.py

        )
        # Get custom optional dependencies name to always include in this (non-slim) package
        include_optional_dependencies: List[str] = config.get(
            "include-optional-dependencies", []
        )
        # Override main [project] configs with custom configs for this package
        for key, value in project_config.items():
            metadata[key] = value
        # Get custom build config for the current package
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 30 06:38:13 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/handling-errors.md

    ```
    
    ## Install custom exception handlers
    
    You can add custom exception handlers with <a href="https://www.starlette.io/exceptions/" class="external-link" target="_blank">the same exception utilities from Starlette</a>.
    
    Let's say you have a custom exception `UnicornException` that you (or a library you use) might `raise`.
    
    And you want to handle this exception globally with FastAPI.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  8. manifests/addons/dashboards/istio-mesh-dashboard.json

                  },
                  {
                    "id": "decimals",
                    "value": 2
                  },
                  {
                    "id": "custom.align"
                  },
                  {
                    "id": "custom.hidden",
                    "value": true
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
    Json
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 02:28:01 GMT 2024
    - 46.4K bytes
    - Viewed (0)
  9. docs/en/docs/reference/responses.md

    # Custom Response Classes - File, HTML, Redirect, Streaming, etc.
    
    There are several custom response classes you can use to create an instance and return them directly from your *path operations*.
    
    Read more about it in the [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
    
    You can import them directly from `fastapi.responses`:
    
    ```python
    from fastapi.responses import (
        FileResponse,
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_experimental.h

      // be an empty string if no device was explicitly requested, but will
      // otherwise be the name of this custom device. Ops are placed onto a custom
      // device if any of their inputs are on that custom device, but custom devices
      // are free to set a bad status in order to require explicit placement.
      void (*execute)(const TFE_Op* op, int* num_outputs,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
Back to top