Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 603 for sessionId (0.19 sec)

  1. docs_src/websockets/tutorial002_an_py39.py

        return HTMLResponse(html)
    
    
    async def get_cookie_or_token(
        websocket: WebSocket,
        session: Annotated[Union[str, None], Cookie()] = None,
        token: Annotated[Union[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)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyCoordinatesFactoryRequest.java

        static DependencyCoordinatesFactoryRequest build(
                @Nonnull Session session,
                String groupId,
                String artifactId,
                String version,
                String classifier,
                String extension,
                String type) {
            return DependencyCoordinatesFactoryRequest.builder()
                    .session(nonNull(session, "session cannot be null"))
                    .groupId(groupId)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

        public DefaultSession(
                @Nonnull MavenSession session,
                @Nonnull RepositorySystem repositorySystem,
                @Nullable List<RemoteRepository> remoteRepositories,
                @Nonnull MavenRepositorySystem mavenRepositorySystem,
                @Nonnull Lookup lookup,
                @Nonnull RuntimeInformation runtimeInformation) {
            super(
                    nonNull(session).getRepositorySession(),
                    repositorySystem,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. docs_src/sql_databases/tutorial002.py

    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/", response_model=HeroPublic)
    def create_hero(hero: HeroCreate, session: Session = Depends(get_session)):
        db_hero = Hero.model_validate(hero)
        session.add(db_hero)
        session.commit()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbTreeConnection.java

                    if ( Objects.equals(loc.getShare(), t.getShare()) ) {
                        try ( SmbSessionImpl session = t.getSession() ) {
                            targetDomain = session.getTargetDomain();
                            if ( !session.isFailed() ) {
                                try ( SmbTransportImpl trans = session.getTransport();
                                      SmbTreeImpl ct = connectTree(loc, host, t.getShare(), trans, t, null) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

        SmbSession session;
        Object cred;
    
        SmbComSessionSetupAndX( SmbSession session, ServerMessageBlock andx, Object cred ) throws SmbException {
            super( andx );
            command = SMB_COM_SESSION_SETUP_ANDX;
            this.session = session;
            this.cred = cred;
    
            sessionKey = session.transport.sessionKey;
            capabilities = session.transport.capabilities;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java

                }
    
                if (mirrors) {
                    repositorySystem.injectMirror(session, repositories);
                }
    
                repositorySystem.injectProxy(session, repositories);
    
                repositorySystem.injectAuthentication(session, repositories);
            }
    
            return repository;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. docs_src/sql_databases/tutorial002_an_py310.py

        hero_db.sqlmodel_update(hero_data)
        session.add(hero_db)
        session.commit()
        session.refresh(hero_db)
        return hero_db
    
    
    @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()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/building/DefaultToolchainsBuilder.java

            try {
                ToolchainsBuilderResult result = builder.build(ToolchainsBuilderRequest.builder()
                        .session((Session) java.lang.reflect.Proxy.newProxyInstance(
                                Session.class.getClassLoader(),
                                new Class[] {Session.class},
                                (Object proxy, Method method, Object[] args) -> {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

                MavenSession session = new MavenSession(closeableSession, request, result);
                session.setSession(defaultSessionFactory.newSession(session));
    
                sessionScope.seed(MavenSession.class, session);
                sessionScope.seed(Session.class, session.getSession());
                sessionScope.seed(InternalMavenSession.class, InternalMavenSession.from(session.getSession()));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
Back to top