Search Options

Results per page
Sort
Preferred Languages
Advance

Results 861 - 870 of 9,551 for report (0.06 sec)

  1. docs_src/security/tutorial002.py

    from typing import Union
    
    from fastapi import Depends, FastAPI
    from fastapi.security import OAuth2PasswordBearer
    from pydantic import BaseModel
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    def fake_decode_token(token):
        return User(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 755 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.curl.io;
    
    import java.io.File;
    import java.io.IOException;
    import java.nio.file.Files;
    import java.util.logging.Logger;
    
    import org.apache.commons.io.output.DeferredFileOutputStream;
    
    public class ContentOutputStream extends DeferredFileOutputStream {
    
    Registered: Thu Oct 31 02:32:13 UTC 2024
    - Last Modified: Mon Nov 14 21:05:19 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.net;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.IOException;
    import java.net.JarURLConnection;
    import java.util.jar.JarFile;
    
    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link JarURLConnection}用のユーティリティクラスです。
     *
     * @author higa
     */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/LineIteratorTest.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.io.StringReader;
    
    import org.junit.Test;
    
    /**
     * @author koichik
     */
    public class LineIteratorTest {
    
        /**
         * @throws Exception
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ExtensibleEnumProvider.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.spi;
    
    import java.util.Collection;
    
    import org.apache.maven.api.ExtensibleEnum;
    import org.apache.maven.api.annotations.Consumer;
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     * An SPI interface to extend Maven with a new enum value.
     *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:54:53 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilterTest.java

     * under the License.
     */
    package org.apache.maven.artifact.resolver.filter;
    
    import java.util.Arrays;
    
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertFalse;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@link AndArtifactFilter}.
     *
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial006_an_py39.py

    from base64 import b64encode
    
    import pytest
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py39
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.security.tutorial006_an import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py39
    def test_security_http_basic(client: TestClient):
        response = client.get("/users/me", auth=("john", "secret"))
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

     */
    package org.codelibs.fess.crawler.util;
    
    import java.io.File;
    
    import org.codelibs.core.io.FileUtil;
    import org.codelibs.fess.crawler.exception.CrawlerSystemException;
    import org.mortbay.jetty.Handler;
    import org.mortbay.jetty.Server;
    import org.mortbay.jetty.handler.DefaultHandler;
    import org.mortbay.jetty.handler.HandlerList;
    import org.mortbay.jetty.handler.ResourceHandler;
    import org.mortbay.log.Log;
    
    /**
     * @author shinsuke
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. docs_src/security/tutorial007_an_py39.py

    import secrets
    from typing import Annotated
    
    from fastapi import Depends, FastAPI, HTTPException, status
    from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
    app = FastAPI()
    
    security = HTTPBasic()
    
    
    def get_current_username(
        credentials: Annotated[HTTPBasicCredentials, Depends(security)],
    ):
        current_username_bytes = credentials.username.encode("utf8")
        correct_username_bytes = b"stanleyjobson"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

     */
    package org.codelibs.fess.helper;
    
    import java.io.File;
    import java.math.BigDecimal;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.stream.Collectors;
    
    import org.codelibs.core.io.FileUtil;
    import org.codelibs.core.misc.DynamicProperties;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.entity.QueryContext;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 11 08:26:36 UTC 2024
    - 39.8K bytes
    - Viewed (0)
Back to top