- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 474 for image (0.13 sec)
-
docs_src/body_nested_models/tutorial008.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jun 12 19:41:44 GMT 2020 - 273 bytes - Viewed (0) -
okhttp/src/test/java/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) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3K bytes - Viewed (0) -
docs_src/additional_responses/tutorial002.py
response_model=Item, responses={ 200: { "content": {"image/png": {}}, "description": "Return the JSON item or an image.", } }, ) 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 May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 628 bytes - Viewed (0) -
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 May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 504 bytes - Viewed (0) -
docs/en/docs/tutorial/body-nested-models.md
## Bodies of pure lists If the top level value of the JSON body you expect is a JSON `array` (a Python `list`), you can declare the type in the parameter of the function, the same as in Pydantic models: ```Python images: List[Image] ``` or in Python 3.9 and above: ```Python images: list[Image] ``` as in: === "Python 3.9+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.5K bytes - Viewed (0) -
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) -
docs/en/overrides/main.html
<img class="sponsor-image" src="/img/sponsors/platform-sh-banner.png" /> </a> </div> <div class="item"> <a title="Deploy FastAPI on AWS with a few clicks" style="display: block; position: relative;" href="https://www.porter.run" target="_blank"> <span class="sponsor-badge">sponsor</span> <img class="sponsor-image" src="/img/sponsors/porter-banner.png" /> </a> </div>
HTML - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Mar 25 23:10:11 GMT 2024 - 4.6K bytes - Viewed (0) -
common-protos/k8s.io/api/imagepolicy/v1alpha1/generated.proto
} // ImageReviewContainerSpec is a description of a container within the pod creation request. message ImageReviewContainerSpec { // This can be in the form image:tag or image@SHA:012345679abcdef. // +optional optional string image = 1; } // ImageReviewSpec is a description of the pod creation request. message ImageReviewSpec {
Plain Text - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Mon Mar 11 18:43:24 GMT 2024 - 3.2K bytes - Viewed (0) -
api/go1.4.txt
pkg image/png, const DefaultCompression = 0 pkg image/png, const DefaultCompression CompressionLevel pkg image/png, const NoCompression = -1 pkg image/png, const NoCompression CompressionLevel pkg image/png, method (*Encoder) Encode(io.Writer, image.Image) error pkg image/png, type CompressionLevel int pkg image/png, type Encoder struct pkg image/png, type Encoder struct, CompressionLevel CompressionLevel
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Dec 12 03:01:01 GMT 2014 - 34K bytes - Viewed (0) -
docs_src/body_nested_models/tutorial007_py39.py
from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() images: Union[list[Image], None] = None class Offer(BaseModel): name: str
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 570 bytes - Viewed (0)