Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 292 for serializer (0.12 seconds)

  1. docs/en/docs/advanced/json-base64-bytes.md

      "content": "hello"
    }
    ```
    
    ## Pydantic `bytes` for Output Data { #pydantic-bytes-for-output-data }
    
    You can also use `bytes` fields with `ser_json_bytes` in the model config for output data, and Pydantic will *serialize* the bytes as base64 when generating the JSON response.
    
    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  2. internal/grid/msg_gen.go

    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = Flags(zb0001)
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z Flags) Msgsize() (s int) {
    	s = msgp.Uint8Size
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *HandlerID) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 uint8
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  3. tests/test_request_params/test_cookie/test_list.py

    # Currently, there is no way to pass multiple cookies with the same name.
    # The only way to pass multiple values for cookie params is to serialize them using
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Dec 11 16:15:36 GMT 2025
    - 234 bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/CoordinatorHelper.java

        //                                                                         ===========
    
        /**
         * Serializes a map to a JSON string.
         *
         * @param map the map to serialize.
         * @return the JSON string, or {@code "{}"} on failure.
         */
        protected String toJson(final Map<String, Object> map) {
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/SKILL.md

    @app.post("/items/")
    async def create_item(item: Item, project_id: Annotated[int, Query(...)]): ...
    ```
    
    ## Return Type or Response Model
    
    When possible, include a return type. It will be used to validate, filter, document, and serialize the response.
    
    ```python
    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. tensorflow/c/eager/c_api_remote_test_util.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
      TFE_DeleteContextOptions(opts);
    
      TFE_ContextSetServerDef(ctx, 0, serialized.data(), serialized.size(), status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      TFE_TensorHandle* h0_task0 = TestMatrixTensorHandle(ctx);
      TFE_TensorHandle* h1_task0 = TestMatrixTensorHandle(ctx);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Click Count (0)
  7. docs/tr/docs/advanced/additional-status-codes.md

    /// warning | Uyarı
    
    Yukarıdaki örnekte olduğu gibi bir `Response`'u doğrudan döndürdüğünüzde, response aynen olduğu gibi döndürülür.
    
    Bir model ile serialize edilmez, vb.
    
    İçinde olmasını istediğiniz veriyi taşıdığından emin olun ve değerlerin geçerli JSON olduğundan emin olun (eğer `JSONResponse` kullanıyorsanız).
    
    ///
    
    /// note | Teknik Detaylar
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 2.1K bytes
    - Click Count (0)
  8. docs/pt/docs/advanced/json-base64-bytes.md

    }
    ```
    
    ## Pydantic `bytes` para dados de saída { #pydantic-bytes-for-output-data }
    
    Você também pode usar campos `bytes` com `ser_json_bytes` na configuração do modelo para dados de saída, e o Pydantic irá *serializar* os bytes como base64 ao gerar a response JSON.
    
    {* ../../docs_src/json_base64_bytes/tutorial001_py310.py ln[1:2,12:16,29,38:41] hl[16] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:13 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  9. cmd/batch-job-common-types_gen.go

    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z BatchJobKV) Msgsize() (s int) {
    	s = 1 + 4 + msgp.StringPrefixSize + len(z.Key) + 6 + msgp.StringPrefixSize + len(z.Value)
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 21.9K bytes
    - Click Count (0)
  10. docs/pt/docs/advanced/response-directly.md

    Se você declarar um [Modelo de resposta](../tutorial/response-model.md), o FastAPI irá usá-lo para serializar os dados para JSON, usando o Pydantic.
    
    Se você não declarar um modelo de resposta, o FastAPI usará o `jsonable_encoder` explicado em [Codificador Compatível com JSON](../tutorial/encoder.md) e o colocará em uma `JSONResponse`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 4.5K bytes
    - Click Count (0)
Back to Top