Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 951 for opcional (0.14 sec)

  1. tests/test_security_oauth2_password_bearer_optional.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import OAuth2PasswordBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="/token", auto_error=False)
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        if token is None:
            return {"msg": "Create an account first"}
        return {"token": token}
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. fastapi/exceptions.py

            *,
            body: Any = None,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
            super().__init__(errors, endpoint_ctx=endpoint_ctx)
            self.body = body
    
    
    class WebSocketRequestValidationError(ValidationException):
        def __init__(
            self,
            errors: Sequence[Any],
            *,
            endpoint_ctx: Optional[EndpointContext] = None,
        ) -> None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. docs_src/python_types/tutorial012_py39.py

    from typing import Optional
    
    from pydantic import BaseModel
    
    
    class User(BaseModel):
        name: str
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 122 bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/execution/BuildResumptionAnalyzer.java

         * @param result Outcome of the current Maven build.
         * @return A {@link BuildResumptionData} instance or {@link Optional#empty()} if resuming the build is not possible.
         */
        Optional<BuildResumptionData> determineBuildResumptionData(MavenExecutionResult result);
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Apr 05 11:52:05 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/security/first-steps.md

    /// info | Información
    
    Un token "bearer" no es la única opción.
    
    Pero es la mejor para nuestro caso de uso.
    
    Y podría ser la mejor para la mayoría de los casos de uso, a menos que seas un experto en OAuth2 y sepas exactamente por qué hay otra opción que se adapta mejor a tus necesidades.
    
    En ese caso, **FastAPI** también te proporciona las herramientas para construirlo.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. internal/config/callhome/help.go

    			Type:        "on|off",
    			Description: "set to enable callhome" + defaultHelpPostfix(Enable),
    			Optional:    true,
    		},
    		config.HelpKV{
    			Key:         Frequency,
    			Type:        "duration",
    			Description: "time duration between callhome cycles e.g. 24h" + defaultHelpPostfix(Frequency),
    			Optional:    true,
    		},
    	}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Jun 06 23:14:52 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/Node.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api;
    
    import java.util.List;
    import java.util.Optional;
    import java.util.function.Predicate;
    import java.util.stream.Stream;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Immutable;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Mar 24 14:10:11 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. internal/config/scanner/help.go

    			Description: `customize scanner speed (default|slowest|slow|fast|fastest)` + defaultHelpPostfix(Speed),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         ExcessVersions,
    			Description: `alert per object beyond this many versions` + defaultHelpPostfix(ExcessVersions),
    			Optional:    true,
    			Type:        "int",
    		},
    		config.HelpKV{
    			Key:         ExcessFolders,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Feb 12 07:41:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RangeMap.java

      /** Puts all the associations from {@code rangeMap} into this range map (optional operation). */
      void putAll(RangeMap<K, ? extends V> rangeMap);
    
      /** Removes all associations from this range map (optional operation). */
      void clear();
    
      /**
       * Removes all associations from this range map in the specified range (optional operation).
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. tests/test_security_oauth2_password_bearer_optional_description.py

    from typing import Optional
    
    from fastapi import FastAPI, Security
    from fastapi.security import OAuth2PasswordBearer
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="/token",
        description="OAuth2PasswordBearer security scheme",
        auto_error=False,
    )
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        if token is None:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top