Search Options

Results per page
Sort
Preferred Languages
Advance

Results 541 - 550 of 1,540 for edata (0.03 sec)

  1. docs/en/docs/tutorial/handling-errors.md

    These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data.
    
    You can override these exception handlers with your own.
    
    ### Override request validation exceptions
    
    When a request contains invalid data, **FastAPI** internally raises a `RequestValidationError`.
    
    And it also includes a default exception handler for it.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

      override fun cancel() {
        canceled = true
        call?.cancel()
      }
    
      override fun onEvent(
        id: String?,
        type: String?,
        data: String,
      ) {
        listener.onEvent(this, id, type, data)
      }
    
      override fun onRetryChange(timeMs: Long) {
        // Ignored. We do not auto-retry.
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/using-request-directly.md

    # Using the Request Directly
    
    Up to now, you have been declaring the parts of the request that you need with their types.
    
    Taking data from:
    
    * The path as parameters.
    * Headers.
    * Cookies.
    * etc.
    
    And by doing so, **FastAPI** is validating that data, converting it and generating documentation for your API automatically.
    
    But there are situations where you might need to access the `Request` object directly.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/request-form-models.md

    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="7-9  13"
    {!> ../../docs_src/request_form_models/tutorial001.py!}
    ```
    
    ////
    
    **FastAPI** will **extract** the data for **each field** from the **form data** in the request and give you the Pydantic model you defined.
    
    ## Check the Docs
    
    You can verify it in the docs UI at `/docs`:
    
    <div class="screenshot">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. cmd/encryption-v1.go

    	return func(baseKey string, data []byte) []byte {
    		if len(data) == 0 {
    			return data
    		}
    		var buffer bytes.Buffer
    		mac := hmac.New(sha256.New, key[:])
    		mac.Write([]byte(baseKey))
    		if _, err := sio.Encrypt(&buffer, bytes.NewReader(data), sio.Config{Key: mac.Sum(nil), CipherSuites: fips.DARECiphers()}); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  6. docs_src/security/tutorial004.py

        if not user:
            return False
        if not verify_password(password, user.hashed_password):
            return False
        return user
    
    
    def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. docs_src/security/tutorial004_an_py310.py

        if not user:
            return False
        if not verify_password(password, user.hashed_password):
            return False
        return user
    
    
    def create_access_token(data: dict, expires_delta: timedelta | None = None):
        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestSpec.kt

        fun asConfigurationId(model: CIBuildModel): String
        fun asName(): String
        fun channel(): String
    }
    
    data class PerformanceTestPartialTrigger(
        val triggerName: String,
        val triggerId: String,
        val dependencies: List<PerformanceTestCoverage>
    )
    
    data class PerformanceTestCoverage(
        private val uuid: Int,
        override val type: PerformanceTestType,
        override val os: Os,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 18 07:02:47 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

      @Override
      protected Table<String, Integer, Character> create(@Nullable Object... data) {
        ImmutableTable.Builder<String, Integer, Character> builder = ImmutableTable.builder();
        for (int i = 0; i < data.length; i = i + 3) {
          builder.put((String) data[i], (Integer) data[i + 1], (Character) data[i + 2]);
        }
        return builder.build();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

      }
    
      /**
       * Computes a hash code based on the data that have been provided to this hasher. This is called
       * after all chunks are handled with {@link #process} and any leftover bytes that did not make a
       * complete chunk are handled with {@link #processRemaining}.
       */
      protected abstract HashCode makeHash();
    
      // Process pent-up data in chunks
      private void munchIfFull() {
        if (buffer.remaining() < 8) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
Back to top