- Sort Score
- Num 10 results
- Language All
Results 361 - 370 of 624 for ITEM (0.01 seconds)
-
internal/lru/lru.go
// Add adds a value to the cache. Returns true if an eviction occurred. // Returns false if there was no eviction: the item was already in the cache, // or the size was not exceeded. func (c *LRU[K, V]) Add(key K, value V) (evicted bool) { c.mu.Lock() defer c.mu.Unlock() now := time.Now() // Check for existing item if ent, ok := c.items[key]; ok { c.evictList.MoveToFront(ent)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 12.5K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial012.py
"X-Token": "fake-super-secret-token", "X-Key": "fake-super-secret-key", }, ) assert response.status_code == 200, response.text assert response.json() == [{"item": "Portal Gun"}, {"item": "Plumbus"}] def test_get_valid_headers_users(client: TestClient): response = client.get( "/users/", headers={ "X-Token": "fake-super-secret-token",Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.7K bytes - Click Count (0) -
docs/uk/docs/tutorial/body.md
...і вкажіть її тип як модель, яку ви створили, `Item`. ## Результати Лише з цим оголошенням типу Python **FastAPI** буде: * Читати тіло запиту як JSON. * Перетворювати відповідні типи (якщо потрібно). * Валідувати дані. * Якщо дані недійсні, він поверне гарну та чітку помилку, вказуючи, де саме і які дані були неправильними. * Надавати отримані дані у параметрі `item`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 10K bytes - Click Count (0) -
docs_src/websockets/tutorial002_an_py310.py
html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)"> <label>Item ID: <input type="text" id="itemId" autocomplete="off" value="foo"/></label> <label>Token: <input type="text" id="token" autocomplete="off" value="some-key-token"/></label>
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.8K bytes - Click Count (0) -
docs_src/websockets/tutorial002_py310.py
html = """ <!DOCTYPE html> <html> <head> <title>Chat</title> </head> <body> <h1>WebSocket Chat</h1> <form action="" onsubmit="sendMessage(event)"> <label>Item ID: <input type="text" id="itemId" autocomplete="off" value="foo"/></label> <label>Token: <input type="text" id="token" autocomplete="off" value="some-key-token"/></label>
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 2.7K bytes - Click Count (0) -
docs/pt/docs/advanced/additional-responses.md
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 9.4K bytes - Click Count (0) -
docs_src/python_types/tutorial008b_py39.py
from typing import Union def process_item(item: Union[int, str]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 84 bytes - Click Count (0) -
docs/ko/docs/index.md
return {"item_id": item_id, "q": q} @app.put("/items/{item_id}") def update_item(item_id: int, item: Item): return {"item_name": item.name, "item_id": item_id} ``` 서버가 자동으로 리로딩 할 수 있어야 합니다 (위에서 `uvicorn` 명령에 `--reload`을 추가 했기 때문입니다). ### 대화형 API 문서 업그레이드 이제 <a href="http://127.0.0.1:8000/docs" class="external-link" target="_blank">http://127.0.0.1:8000/docs</a>로 이동합니다.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 19.7K bytes - Click Count (0) -
docs/ko/docs/tutorial/query-params.md
"type": "value_error.missing" } ] } ``` `needy`는 필수 매개변수이므로 URL에 반드시 설정해줘야 합니다: ``` http://127.0.0.1:8000/items/foo-item?needy=sooooneedy ``` ...아래처럼 작동합니다: ```JSON { "item_id": "foo-item", "needy": "sooooneedy" } ``` 그리고 물론, 일부 매개변수는 필수로, 다른 일부는 기본값을, 또 다른 일부는 선택적으로 선언할 수 있습니다: {* ../../docs_src/query_params/tutorial006.py hl[10] *}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 5.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java
} if (elements.length > 1) { /* * When a test requests a multiset with duplicates, our plan of * "add an extra item 0 to A and an extra item 1 to B" really means * "add an extra item 0 to A and B," which isn't what we want. */ if (!Objects.equals(elements[0], elements[1])) { multiset2.add(elements[1], 2); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 9.7K bytes - Click Count (0)