- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 4,711 for From (0.02 seconds)
-
tests/test_security_http_digest_optional.py
from fastapi import FastAPI, Security from fastapi.security import HTTPAuthorizationCredentials, HTTPDigest from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() security = HTTPDigest(auto_error=False) @app.get("/users/me") def read_current_user( credentials: HTTPAuthorizationCredentials | None = Security(security), ): if credentials is None:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.3K bytes - Click Count (0) -
android/guava/src/com/google/common/io/CharStreams.java
* close or flush either object. * * @param from the object to read from * @param to the object to write to * @return the number of characters copied * @throws IOException if an I/O error occurs */ @CanIgnoreReturnValue public static long copy(Readable from, Appendable to) throws IOException { // The most common case is that from is a Reader (like InputStreamReader or StringReader) so
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 29 13:56:24 GMT 2025 - 11.9K bytes - Click Count (0) -
fastapi/websockets.py
from starlette.websockets import WebSocket as WebSocket # noqa from starlette.websockets import WebSocketDisconnect as WebSocketDisconnect # noqa
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Sep 04 15:12:10 GMT 2022 - 222 bytes - Click Count (0) -
src/test/java/jcifs/pac/ASN1UtilTest.java
// Test successful casting from tagged object ASN1Integer content = new ASN1Integer(789); ASN1TaggedObject tagged = new DERTaggedObject(true, 1, content); ASN1Integer result = ASN1Util.as(ASN1Integer.class, tagged); assertSame(content, result); } @Test void testAs_ASN1TaggedObject_Failure() { // Test failed casting from tagged objectCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.4K bytes - Click Count (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleRepositoryListener.java
} @Override public void artifactDownloading(RepositoryEvent event) { println("artifactDownloading", event.getArtifact() + " from " + event.getRepository()); } @Override public void artifactDownloaded(RepositoryEvent event) { println("artifactDownloaded", event.getArtifact() + " from " + event.getRepository()); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4.2K bytes - Click Count (0) -
docs/en/docs/advanced/middleware.md
For that, you use `app.add_middleware()` (as in the example for CORS). ```Python from fastapi import FastAPI from unicorn import UnicornMiddleware app = FastAPI() app.add_middleware(UnicornMiddleware, some_config="rainbow") ``` `app.add_middleware()` receives a middleware class as the first argument and any additional arguments to be passed to the middleware.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 4.1K bytes - Click Count (0) -
docs/en/docs/tutorial/index.md
<span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span> Starting development server 🚀 Searching for package file structure from directories with <font color="#3465A4">__init__.py</font> files Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 07 09:29:03 GMT 2026 - 5.3K bytes - Click Count (0) -
internal/handlers/proxy.go
var enableXFFHeader = env.Get("_MINIO_API_XFF_HEADER", config.EnableOn) == config.EnableOn // GetSourceScheme retrieves the scheme from the X-Forwarded-Proto and RFC7239 // Forwarded headers (in that order). func GetSourceScheme(r *http.Request) string { var scheme string // Retrieve the scheme from X-Forwarded-Proto. if proto := r.Header.Get(xForwardedProto); proto != "" { scheme = strings.ToLower(proto)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Feb 26 19:25:49 GMT 2025 - 5.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java
long data4 = bb2.getLong(); // Construct UUID from components - Java UUID expects big-endian representation long mostSig = ((long) data1 << 32) | ((long) (data2 & 0xFFFF) << 16) | (data3 & 0xFFFF); long leastSig = data4; this.guid = new UUID(mostSig, leastSig); } /** * Create a handle GUID from existing UUID * @param uuid the UUID to wrap */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
assertEquals(translatedName.sid_type, decodedName.sid_type); // The decode process doesn't preserve the original length, it reads from the buffer assertNotNull(decodedName.name); assertNotNull(decodedName.name.buffer); // Buffer length is based on maximum_length/2 from the encoded data assertEquals(translatedName.name.maximum_length / 2, decodedName.name.buffer.length);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0)