Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 808 for encodes (0.12 seconds)

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

    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`.
    
    Você também pode criar uma `JSONResponse` diretamente e retorná-la.
    
    /// tip | Dica
    
    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)
  2. docs/en/docs/_llm-test.md

    * the cloud provider
    * the cloud service
    
    * the development
    * the development stages
    
    * the dict
    * the dictionary
    * the enumeration
    * the enum
    * the enum member
    
    * the encoder
    * the decoder
    * to encode
    * to decode
    
    * the exception
    * to raise
    
    * the expression
    * the statement
    
    * the frontend
    * the backend
    
    * the GitHub discussion
    * the GitHub issue
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. docs_src/response_directly/tutorial001_py310.py

    from datetime import datetime
    
    from fastapi import FastAPI
    from fastapi.encoders import jsonable_encoder
    from fastapi.responses import JSONResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        title: str
        timestamp: datetime
        description: str | None = None
    
    
    app = FastAPI()
    
    
    @app.put("/items/{id}")
    def update_item(id: str, item: Item):
        json_compatible_item_data = jsonable_encoder(item)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 474 bytes
    - Click Count (0)
  4. internal/grid/msg_gen.go

    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = Flags(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z Flags) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteUint8(uint8(z))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    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)
  5. cmd/batch-replicate_gen.go

    				return
    			}
    		}
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z *BatchJobReplicateFlags) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 3
    	// write "Filter"
    	err = en.Append(0x83, 0xa6, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72)
    	if err != nil {
    		return
    	}
    	err = z.Filter.EncodeMsg(en)
    	if err != nil {
    		err = msgp.WrapError(err, "Filter")
    		return
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 40.7K bytes
    - Click Count (0)
  6. cmd/erasure-server-pool-rebalance_gen.go

    	{
    		var zb0001 uint8
    		zb0001, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = rebalSaveOpts(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z rebalSaveOpts) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteUint8(uint8(z))
    	if err != nil {
    		err = msgp.WrapError(err)
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 26.8K bytes
    - Click Count (0)
  7. docs_src/handling_errors/tutorial005_py310.py

    from fastapi import FastAPI, Request
    from fastapi.encoders import jsonable_encoder
    from fastapi.exceptions import RequestValidationError
    from fastapi.responses import JSONResponse
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    @app.exception_handler(RequestValidationError)
    async def validation_exception_handler(request: Request, exc: RequestValidationError):
        return JSONResponse(
            status_code=422,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 626 bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

        }
    
        @Test
        @DisplayName("Test encode and decode operations")
        void testEncodeDecodeOperations() {
            byte[] buffer = new byte[1024];
    
            // Initialize transaction buffer to avoid NPE
            transaction.setBuffer(new byte[SmbComTransaction.TRANSACTION_BUF_SIZE]);
    
            // Test encode
            int encodeLength = transaction.encode(buffer, 0);
            assertTrue(encodeLength > 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  9. cmd/bucket-stats_gen.go

    		switch msgp.UnsafeString(field) {
    		case "Nodes":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Nodes")
    				return
    			}
    			if cap(z.Nodes) >= int(zb0002) {
    				z.Nodes = (z.Nodes)[:zb0002]
    			} else {
    				z.Nodes = make([]ReplQNodeStats, zb0002)
    			}
    			for za0001 := range z.Nodes {
    				err = z.Nodes[za0001].DecodeMsg(dc)
    				if err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 57.3K bytes
    - Click Count (0)
  10. docs/fr/docs/advanced/custom-response.md

    Si vous ne déclarez pas de modèle de réponse, FastAPI utilisera le `jsonable_encoder` expliqué dans [Encodeur compatible JSON](../tutorial/encoder.md) et le placera dans une `JSONResponse`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.3K bytes
    - Click Count (0)
Back to Top