- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 142 for 4064 (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs_src/sql_databases/tutorial001_an_py310.py
hero = session.get(Hero, hero_id) if not hero: raise HTTPException(status_code=404, detail="Hero not found") return hero @app.delete("/heroes/{hero_id}") def delete_hero(hero_id: int, session: SessionDep): hero = session.get(Hero, hero_id) if not hero: raise HTTPException(status_code=404, detail="Hero not found") session.delete(hero) session.commit()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Oct 09 19:44:42 GMT 2024 - 1.7K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/DefaultResponseProcessorTest.java
assertFalse(processor.isSuccessful(responseData)); responseData.setHttpStatusCode(304); assertFalse(processor.isSuccessful(responseData)); responseData.setHttpStatusCode(404); assertFalse(processor.isSuccessful(responseData)); } public void test_isNotModified() { DefaultResponseProcessor processor = new DefaultResponseProcessor();
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Sat Mar 15 06:52:00 GMT 2025 - 2.3K bytes - Click Count (0) -
src/arena/arena_test.go
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Oct 12 20:23:36 GMT 2022 - 742 bytes - Click Count (0) -
internal/config/scanner/scanner.go
} excessVersions, err := strconv.ParseInt(env.Get(EnvExcessVersions, kvs.GetWithDefault(ExcessVersions, DefaultKVS)), 10, 64) if err != nil { return cfg, err } cfg.ExcessVersions = excessVersions excessFolders, err := strconv.ParseInt(env.Get(EnvExcessFolders, kvs.GetWithDefault(ExcessFolders, DefaultKVS)), 10, 64) if err != nil { return cfg, err } cfg.ExcessFolders = excessFolders
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 24 23:05:23 GMT 2024 - 5.5K bytes - Click Count (0) -
internal/config/api/api.go
if maxVerStr == "" { maxVerStr = env.Get(EnvAPIObjectMaxVersionsLegacy, kvs.Get(apiObjectMaxVersions)) } if maxVerStr != "" { maxVersions, err := strconv.ParseInt(maxVerStr, 10, 64) if err != nil { return cfg, err } if maxVersions <= 0 { return cfg, fmt.Errorf("invalid object max versions value: %v", maxVersions) } cfg.ObjectMaxVersions = maxVersions } else {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.5K bytes - Click Count (1) -
guava-tests/test/com/google/common/collect/MapsTest.java
assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.open(3, 7))); assertEquals(empty, Maps.subMap(map, Range.open(20, 30))); assertEquals(map, Maps.subMap(map, Range.openClosed(0, 12))); assertEquals(ImmutableSortedMap.of(2, 0, 4, 0), Maps.subMap(map, Range.openClosed(0, 4))); assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.openClosed(2, 6)));
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 22:56:33 GMT 2025 - 65K bytes - Click Count (0) -
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py
client = get_client() response = client.get("/openapi.json") assert response.status_code == 404, response.text response = client.get("/docs") assert response.status_code == 404, response.text response = client.get("/redoc") assert response.status_code == 404, response.text def test_root(): client = get_client() response = client.get("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.7K bytes - Click Count (0) -
cmd/httprange.go
if len(offsetBeginString) > 0 { if offsetBeginString[0] == '+' { return nil, fmt.Errorf("Byte position ('%s') must not have a sign", offsetBeginString) } else if offsetBegin, err = strconv.ParseInt(offsetBeginString, 10, 64); err != nil { return nil, fmt.Errorf("'%s' does not have a valid first byte position value", rangeString) } else if offsetBegin < 0 { return nil, fmt.Errorf("First byte position is negative ('%d')", offsetBegin) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.9K bytes - Click Count (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
def test_items_bar_token_jessica(client: TestClient): response = client.get( "/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"} ) assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_items_plumbus_with_no_token(client: TestClient): response = client.get(
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 21.3K bytes - Click Count (0) -
docs/pt/docs/advanced/additional-responses.md
O **FastAPI** pegará este modelo, gerará o esquema JSON dele e incluirá no local correto do OpenAPI. Por exemplo, para declarar um outro retorno com o status code `404` e um modelo do Pydantic chamado `Message`, você pode escrever: {* ../../docs_src/additional_responses/tutorial001_py39.py hl[18,22] *} /// note | Nota Lembre-se que você deve retornar o `JSONResponse` diretamente.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)