- Sort Score
- Num 10 results
- Language All
Results 7441 - 7450 of 7,804 for RETURN (0.05 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java
} @Test void testReadParameterWordsWireFormat() { byte[] buffer = new byte[1024]; int result = response.readParameterWordsWireFormat(buffer, 0); // The method should read parameter words assertTrue(result >= 0, "readParameterWordsWireFormat should return non-negative value"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.2K bytes - Click Count (0) -
docs_src/json_base64_bytes/tutorial001_py310.py
content = body.data.decode("utf-8") return {"description": body.description, "content": content} @app.get("/data") def get_data() -> DataOutput: data = "hello".encode("utf-8") return DataOutput(description="A plumbus", data=data) @app.post("/data-in-out") def post_data_in_out(body: DataInputOutput) -> DataInputOutput:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 892 bytes - Click Count (0) -
tests/test_optional_file_list.py
from fastapi.testclient import TestClient app = FastAPI() @app.post("/files") async def upload_files(files: list[bytes] | None = File(None)): if files is None: return {"files_count": 0} return {"files_count": len(files), "sizes": [len(f) for f in files]} def test_optional_bytes_list(): client = TestClient(app) response = client.post( "/files",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 789 bytes - Click Count (0) -
tests/test_exception_handlers.py
from starlette.responses import JSONResponse def http_exception_handler(request, exception): return JSONResponse({"exception": "http-exception"}) def request_validation_exception_handler(request, exception): return JSONResponse({"exception": "request-validation"}) def server_error_exception_handler(request, exception): return JSONResponse(status_code=500, content={"exception": "server-error"}) app = FastAPI(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Dec 03 22:37:12 GMT 2024 - 2.4K bytes - Click Count (0) -
docs/ru/docs/advanced/settings.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 16.5K bytes - Click Count (0) -
tests/test_query_cookie_header_model_extra_params.py
@app.get("/query") async def query_model_with_extra(data: Model = Query()): return data @app.get("/header") async def header_model_with_extra(data: Model = Header()): return data @app.get("/cookie") async def cookies_model_with_extra(data: Model = Cookie()): return data def test_query_pass_extra_list(): client = TestClient(app) resp = client.get(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.3K bytes - Click Count (0) -
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
fun checkServerTrusted( chain: Array<out X509Certificate>, authType: String, hostname: String, ): List<X509Certificate> { withHostCalled = true return chain.toList() } override fun getAcceptedIssuers(): Array<X509Certificate> = arrayOf() } val sslContext = Platform.get().newSSLContext().apply {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerTest.java
public void before() throws Exception { suggester = Suggester.builder().build(runner.client(), getTestId()); suggester.createIndexIfNothing(); } private String getTestId() { return ("suggest-indexer-test-" + testName.getMethodName()).toLowerCase(Locale.ROOT); } @Test public void test_indexSingleItem() throws Exception { String[][] readings = new String[1][];
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 28.6K bytes - Click Count (0) -
docs/ja/docs/tutorial/first-steps.md
{* ../../docs_src/first_steps/tutorial003_py310.py hl[7] *} /// note | 備考 違いが分からない場合は、[Async: *「急いでいますか?」*](../async.md#in-a-hurry)を確認してください。 /// ### Step 5: コンテンツの返信 { #step-5-return-the-content } {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *} `dict`、`list`、`str`、`int`などの単一の値を返すことができます。 Pydanticモデルを返すこともできます(後で詳しく説明します)。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:07:17 GMT 2026 - 15.9K bytes - Click Count (0) -
tests/test_required_noneable.py
from fastapi.testclient import TestClient app = FastAPI() @app.get("/query") def read_query(q: str | None): return q @app.get("/explicit-query") def read_explicit_query(q: str | None = Query()): return q @app.post("/body-embed") def send_body_embed(b: str | None = Body(embed=True)): return b client = TestClient(app) def test_required_nonable_query_invalid():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0)