public function toMap()

in php/src/OSS/PutObjectRequest/header.php [129:176]


    public function toMap()
    {
        $res = [];
        if (null !== $this->authorization) {
            $res['Authorization'] = $this->authorization;
        }
        if (null !== $this->cacheControl) {
            $res['Cache-Control'] = $this->cacheControl;
        }
        if (null !== $this->contentDisposition) {
            $res['Content-Disposition'] = $this->contentDisposition;
        }
        if (null !== $this->contentEncoding) {
            $res['Content-Encoding'] = $this->contentEncoding;
        }
        if (null !== $this->contentMD5) {
            $res['Content-MD5'] = $this->contentMD5;
        }
        if (null !== $this->contentLength) {
            $res['Content-Length'] = $this->contentLength;
        }
        if (null !== $this->eTag) {
            $res['CETag'] = $this->eTag;
        }
        if (null !== $this->expires) {
            $res['Expires'] = $this->expires;
        }
        if (null !== $this->serverSideEncryption) {
            $res['x-oss-server-side-encryption'] = $this->serverSideEncryption;
        }
        if (null !== $this->serverSideEncryptionKeyId) {
            $res['x-oss-server-side-encryption-key-id'] = $this->serverSideEncryptionKeyId;
        }
        if (null !== $this->objectAcl) {
            $res['x-oss-object-acl'] = $this->objectAcl;
        }
        if (null !== $this->storageClass) {
            $res['x-oss-storage-class'] = $this->storageClass;
        }
        if (null !== $this->tagging) {
            $res['x-oss-tagging'] = $this->tagging;
        }
        if (null !== $this->contentType) {
            $res['content-type'] = $this->contentType;
        }

        return $res;
    }