Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 409 for Image (0.15 sec)

  1. tests/test_tutorial/test_additional_responses/test_tutorial004.py

    
    def test_path_operation_img():
        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():
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. docs_src/additional_responses/tutorial004.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: Union[bool, None] = None):
        if img:
            return FileResponse("image.png", media_type="image/png")
        else:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 701 bytes
    - Viewed (0)
  3. helm/minio/templates/deployment.yaml

          serviceAccountName: {{ .Values.serviceAccount.name }}
          {{- end }}
          containers:
            - name: {{ .Chart.Name }}
              image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
              imagePullPolicy: {{ .Values.image.pullPolicy }}
              command:
                - "/bin/sh"
                - "-ce"
    Others
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 03 17:50:39 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  4. manifests/charts/istio-operator/values.yaml

    defaults:
      hub: gcr.io/istio-testing
      tag: latest
    
      # ImagePullSecrets for operator ServiceAccount, list of secrets in the same namespace
      # used to pull operator image. Must be set for any cluster configured with private docker registry.
      imagePullSecrets: []
    
      # Specify image pull policy if default behavior isn't desired.
      # Default behavior: latest images will be Always else IfNotPresent.
      imagePullPolicy: ""
    
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. requirements-docs.txt

    mkdocs-material==9.5.18
    mdx-include >=1.4.1,<2.0.0
    mkdocs-redirects>=1.2.1,<1.3.0
    typer >=0.12.0
    pyyaml >=5.3.1,<7.0.0
    # For Material for MkDocs, Chinese search
    jieba==0.42.1
    # For image processing by Material for MkDocs
    pillow==10.3.0
    # For image processing by Material for MkDocs
    cairosvg==2.7.0
    mkdocstrings[python]==0.24.3
    griffe-typingdoc==0.2.2
    # For griffe, it formats with black
    black==24.3.0
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Apr 28 00:27:34 GMT 2024
    - 465 bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/build.sh

        --build-arg REQUIREMENTS_FILE=jax.requirements.txt \
        --target=$target \
        --cache-from "$IMAGE" \
        -t "$IMAGE"  . && break
      done
      final=$?
      if [ $final -ne 0 ]; then
        exit $final
      fi
      set -e
    
      if [[ -n "$KOKORO_BUILD_ID" ]]; then
        gcloud auth configure-docker
        docker push "$IMAGE"
      fi
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Nov 03 13:38:49 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/thumbnail/ThumbnailAction.java

            final String path = imageFile.getAbsolutePath();
            if (path.endsWith(".png")) {
                return "image/png";
            }
            if (path.endsWith(".gif")) {
                return "image/gif";
            }
            if (path.endsWith(".jpg") || path.endsWith(".jpeg")) {
                return "image/jpeg";
            }
            return "application/octet-stream";
        }
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_additional_responses/test_tutorial002.py

    
    def test_path_operation_img():
        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():
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  9. docs_src/body_nested_models/tutorial004.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):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 504 bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/MediaType.java

      public static final MediaType TIFF = createConstant(IMAGE_TYPE, "tiff");
    
      /**
       * <a href="https://en.wikipedia.org/wiki/WebP">WebP image format</a>.
       *
       * @since 13.0
       */
      public static final MediaType WEBP = createConstant(IMAGE_TYPE, "webp");
    
      /**
       * <a href="https://www.iana.org/assignments/media-types/image/heif">HEIF image format</a>.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
Back to top