- Sort Score
- Num 10 results
- Language All
Results 4931 - 4940 of 7,804 for RETURN (0.05 seconds)
-
docs_src/websockets_/tutorial002_an_py310.py
</html> """ @app.get("/") async def get(): return HTMLResponse(html) async def get_cookie_or_token( websocket: WebSocket, session: Annotated[str | None, Cookie()] = None, token: Annotated[str | None, Query()] = None, ): if session is None and token is None: raise WebSocketException(code=status.WS_1008_POLICY_VIOLATION) return session or token @app.websocket("/items/{item_id}/ws")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 12:34:37 GMT 2026 - 2.8K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/RestTestUtil.java
return registerTestTask(project, sourceSet, sourceSet.getName()); } /** * Creates a {@link RestIntegTestTask} task with a custom name for the provided source set */ public static Provider<RestIntegTestTask> registerTestTask(Project project, SourceSet sourceSet, String taskName) { // lazily create the test task
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 03 16:26:11 GMT 2021 - 3.1K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
) async def get_token(token: Annotated[str, Depends(oauth2_scheme)]) -> str: return token app = FastAPI(dependencies=[Depends(get_token)]) @app.get("/admin", dependencies=[Security(get_token, scopes=["read", "write"])]) async def read_admin(): return {"message": "Admin Access"} client = TestClient(app) def test_read_admin():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.6K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/FakeTickerTest.java
runConcurrentTest( numberOfThreads, () -> { // adds two nanoseconds to the ticker ticker.advance(1L); Thread.sleep(10); ticker.advance(1L); return null; }); assertEquals(numberOfThreads * 2, ticker.read()); } @GwtIncompatible // concurrency public void testConcurrentAutoIncrementStep() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 6.1K bytes - Click Count (0) -
cmd/format_string.go
const _format_name = "UnknownGzipZstdLZ4S2BZ2" var _format_index = [...]uint8{0, 7, 11, 15, 18, 20, 23} func (i format) String() string { if i < 0 || i >= format(len(_format_index)-1) { return "format(" + strconv.FormatInt(int64(i), 10) + ")" } return _format_name[_format_index[i]:_format_index[i+1]]
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 737 bytes - Click Count (0) -
fastapi/openapi/docs.py
def _html_safe_json(value: Any) -> str: """Serialize a value to JSON with HTML special characters escaped. This prevents injection when the JSON is embedded inside a <script> tag. """ return ( json.dumps(value) .replace("<", "\\u003c") .replace(">", "\\u003e") .replace("&", "\\u0026") ) swagger_ui_default_parameters: Annotated[ dict[str, Any], Doc(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 12.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/error/ErrorBadrequrestAction.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2.1K bytes - Click Count (0) -
tests/test_security_openid_connect_description.py
class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_oauth2():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.6K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsBuildingResult.java
this.problems = (problems != null) ? problems : new ArrayList<>(); } @Override public Settings getEffectiveSettings() { return effectiveSettings; } @Override public List<SettingsProblem> getProblems() { return problems; }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
@Override public boolean processBytes(byte[] buf, int off, int len) { out.write(buf, off, len); return true; } @Override public byte[] getResult() { return out.toByteArray(); } } public void testByteProcessorStopEarly() throws IOException { byte[] array = newPreFilledByteArray(10000); assertEquals(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 22K bytes - Click Count (0)