Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 207 for converter_ (0.1 sec)

  1. docs/fr/docs/advanced/response-directly.md

    Par exemple, vous ne pouvez pas mettre un modèle Pydantic dans une `JSONResponse` sans d'abord le convertir en un `dict` avec tous les types de données (comme `datetime`, `UUID`, etc.) convertis en types compatibles avec JSON.
    
    Pour ces cas, vous pouvez spécifier un appel à `jsonable_encoder` pour convertir vos données avant de les passer à une réponse :
    
    ```Python hl_lines="6-7  21-22"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Shorts.java

      public static short fromBytes(byte b1, byte b2) {
        return (short) ((b1 << 8) | (b2 & 0xFF));
      }
    
      private static final class ShortConverter extends Converter<String, Short>
          implements Serializable {
        static final Converter<String, Short> INSTANCE = new ShortConverter();
    
        @Override
        protected Short doForward(String value) {
          return Short.decode(value);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Shorts.java

      public static short fromBytes(byte b1, byte b2) {
        return (short) ((b1 << 8) | (b2 & 0xFF));
      }
    
      private static final class ShortConverter extends Converter<String, Short>
          implements Serializable {
        static final Converter<String, Short> INSTANCE = new ShortConverter();
    
        @Override
        protected Short doForward(String value) {
          return Short.decode(value);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. docs/es/docs/advanced/response-directly.md

    /// tip | Consejo
    
    `JSONResponse` en sí misma es una subclase de `Response`.
    
    ///
    
    Y cuando devuelves una `Response`, **FastAPI** la pasará directamente.
    
    No hará ninguna conversión de datos con modelos Pydantic, no convertirá el contenido a ningún tipo, etc.
    
    Esto te da mucha flexibilidad. Puedes devolver cualquier tipo de dato, sobrescribir cualquier declaración de datos o validación, etc.
    
    ## Usando el `jsonable_encoder` en una `Response`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Ints.java

        return b1 << 24 | (b2 & 0xFF) << 16 | (b3 & 0xFF) << 8 | (b4 & 0xFF);
      }
    
      private static final class IntConverter extends Converter<String, Integer>
          implements Serializable {
        static final Converter<String, Integer> INSTANCE = new IntConverter();
    
        @Override
        protected Integer doForward(String value) {
          return Integer.decode(value);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Floats.java

            "the total number of elements (%s) in the arrays must fit in an int",
            result);
        return (int) result;
      }
    
      private static final class FloatConverter extends Converter<String, Float>
          implements Serializable {
        static final Converter<String, Float> INSTANCE = new FloatConverter();
    
        @Override
        protected Float doForward(String value) {
          return Float.valueOf(value);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Doubles.java

            "the total number of elements (%s) in the arrays must fit in an int",
            result);
        return (int) result;
      }
    
      private static final class DoubleConverter extends Converter<String, Double>
          implements Serializable {
        static final Converter<String, Double> INSTANCE = new DoubleConverter();
    
        @Override
        protected Double doForward(String value) {
          return Double.valueOf(value);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Floats.java

            "the total number of elements (%s) in the arrays must fit in an int",
            result);
        return (int) result;
      }
    
      private static final class FloatConverter extends Converter<String, Float>
          implements Serializable {
        static final Converter<String, Float> INSTANCE = new FloatConverter();
    
        @Override
        protected Float doForward(String value) {
          return Float.valueOf(value);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Doubles.java

            "the total number of elements (%s) in the arrays must fit in an int",
            result);
        return (int) result;
      }
    
      private static final class DoubleConverter extends Converter<String, Double>
          implements Serializable {
        static final Converter<String, Double> INSTANCE = new DoubleConverter();
    
        @Override
        protected Double doForward(String value) {
          return Double.valueOf(value);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. docs/it/docs/index.md

        * Query parameters.
        * Cookies.
        * Headers.
        * Form.
        * File.
    * <abbr title="detta anche: serialization, parsing, marshalling">Conversione</abbr> dei dati di output: converte dati e tipi di Python a dati per la rete (come JSON):
        * Converte i tipi di Python (`str`, `int`, `float`, `bool`, `list`, ecc).
        * Oggetti `datetime`.
        * Oggetti `UUID`.
        * Modelli del database.
        * ...e molto di più.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top