Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 24 for rb (0.04 seconds)

  1. tests/test_tutorial/test_request_files/test_tutorial001_02.py

        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, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  2. docs_src/custom_response/tutorial008_py39.py

    from fastapi.responses import StreamingResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    def main():
        def iterfile():  # (1)
            with open(some_file_path, mode="rb") as file_like:  # (2)
                yield from file_like  # (3)
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 360 bytes
    - Click Count (0)
  3. docs/sts/client-grants.py

                                       '0Z4VTG8uJBSekn42HE40DK9vQb4a'),
    )
    
    boto3_session = Session(botocore_session=bc_session)
    s3 = boto3_session.resource('s3', endpoint_url='http://localhost:9000')
    
    with open('/etc/hosts', 'rb') as data:
        s3.meta.client.upload_fileobj(data,
                                      'testbucket',
                                      'hosts',
                                      ExtraArgs={'ServerSideEncryption': 'AES256'})
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  4. tests/test_datastructures.py

        @app.post("/uploadfile/")
        def create_upload_file(file: UploadFile):
            testing_file_store.append(file)
            return {"filename": file.filename}
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"filename": "test.txt"}
    
        assert testing_file_store
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. docs/site-replication/run-multi-site-oidc.sh

    # create a new bucket on minio2. This should replicate to minio1 after it comes online.
    ./mc mb minio2/newbucket2
    # delete bucket2 on minio2. This should replicate to minio1 after it comes online.
    ./mc rb minio2/bucket2
    
    # Restart minio1 instance
    minio server --address ":9001" --console-address ":10000" /tmp/minio1/{1...4} >/tmp/minio1_1.log 2>&1 &
    sleep 200
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Sep 24 08:03:58 GMT 2024
    - 8.5K bytes
    - Click Count (0)
  6. docs/site-replication/run-multi-site-ldap.sh

    # create a new bucket on minio2. This should replicate to minio1 after it comes online.
    ./mc mb minio2/newbucket2
    # delete bucket2 on minio2. This should replicate to minio1 after it comes online.
    ./mc rb minio2/bucket2
    
    # Restart minio1 instance
    minio server --config-dir /tmp/minio-ldap --address ":9001" /tmp/minio-ldap-idp1/{1...4} >/tmp/minio1_1.log 2>&1 &
    sleep 200
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Sep 24 08:03:58 GMT 2024
    - 10.1K bytes
    - Click Count (0)
  7. src/archive/zip/zip_test.go

    	}
    }
    
    func (r *rleBuffer) ReadAt(p []byte, off int64) (n int, err error) {
    	if len(p) == 0 {
    		return
    	}
    	skipParts, _ := slices.BinarySearchFunc(r.buf, off, func(rb repeatedByte, off int64) int {
    		return cmp.Compare(rb.off+rb.n, off)
    	})
    	parts := r.buf[skipParts:]
    	if len(parts) > 0 {
    		skipBytes := off - parts[0].off
    		for _, part := range parts {
    			repeat := int(min(part.n-skipBytes, int64(len(p)-n)))
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu May 23 01:00:11 GMT 2024
    - 19.6K bytes
    - Click Count (0)
  8. docs/site-replication/run-multi-site-minio-idp.sh

    # create a new bucket on minio2. This should replicate to minio1 after it comes online.
    ./mc mb minio2/newbucket2
    
    # delete bucket2 on minio2. This should replicate to minio1 after it comes online.
    ./mc rb minio2/bucket2
    
    # Restart minio1 instance
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Sep 24 08:03:58 GMT 2024
    - 12.1K bytes
    - Click Count (0)
  9. android/guava/src/com/google/thirdparty/publicsuffix/PublicSuffixPatterns.java

    bd8--nx?b8adbeh--nx?c6ytdgbd4--nx?d8lhbd5--nx???a&lp!.oc,?ps!.&fh:.citats,,lla4sx,rebu,sonoi-ppa,t&cejorp,safym,?uyieh,?artxe??sla??i!ffo??n&a&d?iler?nif?rusni!efil?srelevart???eics??rofria??d!.&1sndnyd,42pi-nyd,7erauqs,amil4,b&ow-nrefeilgitsng--nx,rb-ni,ur,vz-nelletsebgitsng--nx,?decalpb,e&daregtmueart,luhcsvresi,mohsnd,nihcamyek,tiesbew321,?gifnocecapsbew,hcierebsnoissuksid,k&codluhcs,eegnietsi,?lsd-ni,m&oc,rofttalpluhcs,uhcob-inu-rhur:.con.oi,,?n&-i-g-o-l,aw-ym,e&lletsebgitsnüg,sgnutiel,?i&em...
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 20:00:28 GMT 2025
    - 76.5K bytes
    - Click Count (1)
  10. lib/fips140/v1.0.0-c2097c7c.zip

    GOARCH_ppc64le # ifdef GOPPC64_power9 #define P8_LXVB16X(RA,RB,VT) LXVB16X (RA)(RB), VT #define P8_STXVB16X(VS,RA,RB) STXVB16X VS, (RA)(RB) # else #define NEEDS_ESPERM #define P8_LXVB16X(RA,RB,VT) \ LXVD2X (RA+RB), VT \ VPERM VT, VT, ESPERM, VT #define P8_STXVB16X(VS,RA,RB) \ VPERM VS, VS, ESPERM, TMP2; \ STXVD2X TMP2, (RA+RB) # endif #else #define P8_LXVB16X(RA,RB,VT) \ LXVD2X (RA+RB), VT #define P8_STXVB16X(VS,RA,RB) \ STXVD2X VS, (RA+RB) #endif #define MASK_PTR R8 #define MASKV V0 #define INV V1...
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Sep 25 19:53:19 GMT 2025
    - 642.7K bytes
    - Click Count (0)
Back to Top