Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for get_a_a (0.12 sec)

  1. tests/test_default_response_class_router.py

    def get_path_override():
        return "Hello World"
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "Hello A"}
    
    
    @router_a.get("/override", response_class=PlainTextResponse)
    def get_a_path_override():
        return "Hello A"
    
    
    @router_a_a.get("/")
    def get_a_a():
        return {"msg": "Hello A A"}
    
    
    @router_a_a.get("/override", response_class=PlainTextResponse)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5K bytes
    - Viewed (0)
  2. tests/test_default_response_class.py

    def get_path_override():
        return "Hello World"
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "Hello A"}
    
    
    @router_a.get("/override", response_class=PlainTextResponse)
    def get_a_path_override():
        return "Hello A"
    
    
    @router_a_a.get("/")
    def get_a_a():
        return {"msg": "Hello A A"}
    
    
    @router_a_a.get("/override", response_class=PlainTextResponse)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Mar 01 20:49:20 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/TextTransformerTest.java

            responseData.setResponseBody(data);
            responseData.setMimeType("text/plain");
            final ResultData resultData = textTransformer.transform(responseData);
            assertEquals("xyz", new String(resultData.getData(), resultData.getEncoding()));
        }
    
        public void test_transform_html() throws Exception {
            final byte[] data = new String("<html><body>xyz</body></html>").getBytes();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformer.java

            }
    
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
         * org.codelibs.fess.crawler.transformer.Transformer#getData(org.codelibs.fess.crawler.entity
         * .AccessResultData)
         */
        @Override
        public Object getData(final AccessResultData<?> accessResultData) {
            // check transformer name
            if (!getName().equals(accessResultData.getTransformerName())) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java

            return resultData;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see
         * org.codelibs.fess.crawler.transformer.Transformer#getData(org.codelibs.fess.crawler.entity
         * .AccessResultData)
         */
        @Override
        public Object getData(final AccessResultData<?> accessResultData) {
            // check transformer name
            if (!getName().equals(accessResultData.getTransformerName())) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/BinaryTransformerTest.java

            responseData.setResponseBody(data);
            final ResultData resultData = binaryTransformer.transform(responseData);
            assertEquals("xyz", new String(resultData.getData()));
        }
    
        public void test_transform_null() {
            try {
                binaryTransformer.transform(null);
                fail();
            } catch (final CrawlerSystemException e) {
                // NOP
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. tests/test_dependency_security_overrides.py

        return "alice", required_scopes.scopes
    
    
    def get_data():
        return [1, 2, 3]
    
    
    def get_data_override():
        return [3, 4, 5]
    
    
    @app.get("/user")
    def read_user(
        user_data: Tuple[str, List[str]] = Security(get_user, scopes=["foo", "bar"]),
        data: List[int] = Depends(get_data),
    ):
        return {"user": user_data[0], "scopes": user_data[1], "data": data}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 14 15:54:46 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java

            responseData.setResponseBody(data);
            responseData.setCharSet("ISO-8859-1");
            final ResultData resultData = htmlTransformer.transform(responseData);
            assertEquals("xyz", new String(resultData.getData()));
        }
    
        public void test_transform_filelink() {
            String content = "<a href=\"test2.html\">test</a>";
            final byte[] data = new String(content).getBytes();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

            responseData.setCharSet(Constants.UTF_8);
            final ResultData resultData = new ResultData();
            xpathTransformer.storeData(responseData, resultData);
            assertEquals(result, new String(resultData.getData(), Constants.UTF_8));
        }
    
        public void test_getData() throws Exception {
            final String value = "<?xml version=\"1.0\"?>\n"//
                    + "<doc>\n"//
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

            if (out.isInMemory()) {
                return new ByteArrayInputStream(out.getData());
            }
            return new FileInputStream(out.getFile());
        }
    
        protected long getContentLength(final DeferredFileOutputStream out) throws IOException {
            if (out.isInMemory()) {
                return out.getData().length;
            }
            return out.getFile().length();
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top