Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 111 for filesize (0.07 sec)

  1. docs/en/docs/img/deployment/https/https07.drawio

                        <mxGeometry x="890" y="500" width="310" height="80" as="geometry"/>
                    </mxCell>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 18.7K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_request_files/test_tutorial001_03.py

        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        client = TestClient(app)
        with path.open("rb") as file:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. docs/en/docs/img/tutorial/bigger-applications/package.drawio

                        <mxGeometry x="140" y="430" width="360" height="100" as="geometry"/>
                    </mxCell>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu May 12 00:06:16 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  4. cmd/storage-rest-common_gen.go

    func (z *nsScannerResp) Msgsize() (s int) {
    	s = 1 + 2
    	if z.Update == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.Update.Msgsize()
    	}
    	s += 2
    	if z.Final == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.Final.Msgsize()
    	}
    	return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. cmd/batch-job-common-types_gen.go

    	s = 1 + 8
    	if z.Disable == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.BoolSize
    	}
    	s += 6
    	if z.Batch == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.IntSize
    	}
    	s += 9
    	if z.InMemory == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.BoolSize
    	}
    	s += 9
    	if z.Compress == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.BoolSize
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  6. cmd/batch-expire_gen.go

    func (z *BatchJobExpireFilter) Msgsize() (s int) {
    	s = 1 + 10 + z.OlderThan.Msgsize() + 14
    	if z.CreatedBefore == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.TimeSize
    	}
    	s += 5 + msgp.ArrayHeaderSize
    	for za0001 := range z.Tags {
    		s += z.Tags[za0001].Msgsize()
    	}
    	s += 9 + msgp.ArrayHeaderSize
    	for za0002 := range z.Metadata {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. docs_src/request_files/tutorial002_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: list[bytes] = File()):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 786 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial001_02_an_py39.py

        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    @needs_py39
    def test_post_upload_file(tmp_path: Path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. cmd/object-api-datatypes_gen.go

    	if z.ActualSize == nil {
    		s += msgp.NilSize
    	} else {
    		s += msgp.Int64Size
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  10. docs_src/request_files/tutorial002_an.py

    from fastapi.responses import HTMLResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: Annotated[List[bytes], File()]):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: List[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 861 bytes
    - Viewed (0)
Back to top