- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 1,175 for sessions (0.15 sec)
-
tests/test_tutorial/test_websockets/test_tutorial002_py310.py
def test_websocket_with_cookie(app: FastAPI): client = TestClient(app, cookies={"session": "fakesession"}) with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/foo/ws") as websocket: message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == "Session cookie or query token value is: fakesession"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 3.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Service.java
import org.apache.maven.api.annotations.ThreadSafe; /** * Marker interface for all services provided by the {@link Session}. * <p> * Services can be retrieved from the session using the * {@link Session#getService(Class)} method. * * @since 4.0.0 * @see Session#getService(Class) */ @Experimental @ThreadSafe
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed Feb 28 23:54:53 UTC 2024 - 1.2K bytes - Viewed (0) -
docs/sts/client-grants.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import boto3 from boto3.session import Session from botocore.session import get_session from client_grants import ClientGrantsCredentialProvider boto3.set_stream_logger('boto3.resources', logging.DEBUG) bc_session = get_session() bc_session.get_component('credential_provider').insert_before( 'env', ClientGrantsCredentialProvider('NZLOOFRSluw9RfIkuHGqfk1HFp4a',
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 1.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java
injectMirror(repository, mirror); } } } private Mirror getMirror(RepositorySystemSession session, ArtifactRepository repository) { if (session != null) { org.eclipse.aether.repository.MirrorSelector selector = session.getMirrorSelector(); if (selector != null) { RemoteRepository repo = selector.getMirror(RepositoryUtils.toRepo(repository));
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 31.6K bytes - Viewed (0) -
tests/test_tutorial/test_websockets/test_tutorial002_an_py39.py
def test_websocket_with_cookie(app: FastAPI): client = TestClient(app, cookies={"session": "fakesession"}) with pytest.raises(WebSocketDisconnect): with client.websocket_connect("/items/foo/ws") as websocket: message = "Message one" websocket.send_text(message) data = websocket.receive_text() assert data == "Session cookie or query token value is: fakesession"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 3.9K bytes - Viewed (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListenerTest.java
DefaultRepositorySystemSession session = new DefaultRepositorySystemSession(h -> false); // no close handle // warm up test(listener, session, resource, 0); for (int i = 1; i < size; i++) { final int bytes = i; service.execute(() -> { test(listener, session, resource, bytes); }); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultMojoExecution.java
public class DefaultMojoExecution implements MojoExecution { private final InternalMavenSession session; private final org.apache.maven.plugin.MojoExecution delegate; public DefaultMojoExecution(InternalMavenSession session, org.apache.maven.plugin.MojoExecution delegate) { this.session = session; this.delegate = delegate; } public org.apache.maven.plugin.MojoExecution getDelegate() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
docs_src/websockets/tutorial002_an_py310.py
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") async def websocket_endpoint( *,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.8K bytes - Viewed (0) -
docs_src/websockets/tutorial002_py310.py
return HTMLResponse(html) async def get_cookie_or_token( websocket: WebSocket, session: str | None = Cookie(default=None), token: str | None = Query(default=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") async def websocket_endpoint( websocket: WebSocket,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.7K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
MavenSession session = legacySupport.getSession(); if (session != null) { request.setRepositorySession(session.getRepositorySession()); request.setSystemProperties(session.getSystemProperties()); if (request.getUserProperties().isEmpty()) { request.setUserProperties(session.getUserProperties()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 12.1K bytes - Viewed (0)