Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Twenty (0.21 sec)

  1. tests/test_tutorial/test_body/test_tutorial001_py310.py

                    }
                ]
            }
        )
    
    
    @needs_py310
    def test_post_with_only_name_price(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": "twenty"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "float_parsing",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. tests/test_tutorial/test_body/test_tutorial001.py

                    }
                ]
            }
        )
    
    
    def test_post_with_only_name_price(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": "twenty"})
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "float_parsing",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 14.7K bytes
    - Viewed (5)
  3. docs/debugging/inspect/decrypt-v1.go

    		return fmt.Errorf("Invalid key checksum, want %x, got %x", want, got)
    	}
    
    	stream, err := sio.AES_256_GCM.Stream(key)
    	if err != nil {
    		return err
    	}
    	// Zero nonce, we only use each key once, and 32 bytes is plenty.
    	nonce := make([]byte, stream.NonceSize())
    	encr := stream.DecryptReader(r, nonce, nil)
    	_, err = io.Copy(w, encr)
    	if err == nil {
    		fmt.Println(okMsg)
    	}
    	return err
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. internal/bpool/bpool.go

    		}
    	}
    	return
    }
    
    // Put returns the given Buffer to the BytePool.
    func (bp *BytePoolCap) Put(b []byte) {
    	if bp == nil {
    		return
    	}
    	select {
    	case bp.c <- b:
    		// buffer went back into pool
    	default:
    		// buffer didn't go back into pool, just discard
    	}
    }
    
    // Width returns the width of the byte arrays in this pool.
    func (bp *BytePoolCap) Width() (n int) {
    	if bp == nil {
    		return 0
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. docs/pl/docs/features.md

    * Wsparcie dla **WebSocket**.
    * <abbr title='Zadania wykonywane w tle, bez zatrzymywania żądań, w tym samym procesie. Po angielsku: In-process background tasks'>Zadania w tle</abbr>.
    * Eventy startup i shutdown.
    * Klient testowy zbudowany na bazie biblioteki `requests`.
    * **CORS**, GZip, pliki statyczne, streamy.
    * Obsługa **sesji i ciasteczek**.
    * 100% pokrycie testami.
    * 100% adnotacji typów.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                        result.addMissingArtifact(artifact);
                    }
                } catch (ArtifactResolutionException e) {
                    // This is really a wagon TransferFailedException so something went wrong after we successfully
                    // retrieved the metadata.
    
                    synchronized (result) {
                        result.addErrorArtifactException(e);
                    }
                } finally {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 24.8K bytes
    - Viewed (0)
  7. docs/en/docs/deployment/concepts.md

    In this case, it would be better to get **one extra server** and run some processes on it so that they all have **enough RAM and CPU time**.
    
    There's also the chance that for some reason you have a **spike** of usage of your API. Maybe it went viral, or maybe some other services or bots start using it. And you might want to have extra resources to be safe in those cases.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18K bytes
    - Viewed (0)
  8. docs/en/docs/async.md

    Instead of that, by being an "asynchronous" system, once finished, the task can wait in line a little bit (some microseconds) for the computer / program to finish whatever it went to do, and then come back to take the results and continue working with them.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. docs/en/docs/python-types.md

    The important thing is that by using standard Python types, in a single place (instead of adding more classes, decorators, etc), **FastAPI** will do a lot of the work for you.
    
    !!! info
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    			w.Write(key[:])
    		}
    
    		stream, err := sio.AES_256_GCM.Stream(key[:])
    		if err != nil {
    			bugLogIf(ctx, err)
    			return
    		}
    		// Zero nonce, we only use each key once, and 32 bytes is plenty.
    		nonce := make([]byte, stream.NonceSize())
    		encw := stream.EncryptWriter(w, nonce, nil)
    		defer encw.Close()
    
    		// Initialize a zip writer which will provide a zipped content
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top