Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 423 for ximage (0.05 sec)

  1. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. docs/en/overrides/main.html

            <img class="sponsor-image" src="/img/sponsors/propelauth-banner.png" />
          </a>
        </div>
        <div class="item">
          <a title="Zuplo: Scale, Protect, Document, and Monetize your FastAPI" style="display: block; position: relative;" href="https://zuplo.link/fastapi-web" target="_blank">
            <span class="sponsor-badge">sponsor</span>
            <img class="sponsor-image" src="/img/sponsors/zuplo-banner.png" />
          </a>
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 01 20:06:57 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

        }
    
        /**
         * Determines the MIME type of an image file based on its file extension.
         *
         * @param imageFile the image file
         * @return the MIME type string
         */
        protected String getImageMimeType(final File imageFile) {
            final String path = imageFile.getAbsolutePath();
            if (path.endsWith(".png")) {
                return "image/png";
            }
            if (path.endsWith(".gif")) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            // But exclude images and admin section
            urlFilter.addExclude(".*\\.(jpg|png|gif)$");
            urlFilter.addExclude(".*/admin/.*");
    
            assertTrue(urlFilter.match("https://example.com/page.html"));
            assertTrue(urlFilter.match("https://example.com/document.pdf"));
            assertFalse(urlFilter.match("https://example.com/image.jpg"));
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  5. docs_src/additional_responses/tutorial004_py310.py

    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={**responses, 200: {"content": {"image/png": {}}}},
    )
    async def read_item(item_id: str, img: bool | None = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 669 bytes
    - Viewed (0)
  6. src/main/resources/fess_thumbnail.xml

    			<arg>"image/x-windows-bmp"
    			</arg>
    		</postConstruct>
    		<postConstruct name="addCondition">
    			<arg>"mimetype"</arg>
    			<arg>"image/x-ms-bmp"
    			</arg>
    		</postConstruct>
    		<postConstruct name="addCondition">
    			<arg>"mimetype"</arg>
    			<arg>"image/gif"
    			</arg>
    		</postConstruct>
    		<postConstruct name="addCondition">
    			<arg>"mimetype"</arg>
    			<arg>"image/png"
    			</arg>
    		</postConstruct>
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Dec 04 08:02:36 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. fess-crawler/src/test/resources/extractor/test.xml

    		<access kind="url">http://www.taro.com/</access>
    		<image file="taro.png" />
    	</item>
    	<item sex="male" custid="B23456">
    		<name>佐藤二朗</name>
    		<access kind="email">******@****.***</access>
    		<image file="jiro.png" />
    	</item>
    	<item sex="female" custid="C34567">
    		<name>田中花子</name>
    		<access kind="tel">090-xxxx-xxxx</access>
    		<image file="hanako.png" />
    	</item>
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 582 bytes
    - Viewed (0)
  8. docs_src/body_nested_models/tutorial004_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Image(BaseModel):
        url: str
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        image: Union[Image, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 499 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_additional_responses/test_tutorial004.py

    
    def test_path_operation_img(client: TestClient):
        shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
        response = client.get("/items/foo?img=1")
        assert response.status_code == 200, response.text
        assert response.headers["Content-Type"] == "image/png"
        assert len(response.content)
        os.remove("./image.png")
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt

        withLocale(Locale("en", "US")) {
          val mediaType = parse("IMAGE/JPEG")
          assertEquals("image", mediaType.type)
          assertEquals("jpeg", mediaType.subtype)
        }
      }
    
      @Test fun testTurkishDotlessIWithTrTr() {
        withLocale(Locale("tr", "TR")) {
          val mediaType = parse("IMAGE/JPEG")
          assertEquals("image", mediaType.type)
          assertEquals("jpeg", mediaType.subtype)
        }
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top