OBSConstants.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright 2019 Huawei Technologies Co.,Ltd.
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  5. * this file except in compliance with the License. You may obtain a copy of the
  6. * License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software distributed
  11. * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  12. * CONDITIONS OF ANY KIND, either express or implied. See the License for the
  13. * specific language governing permissions and limitations under the License.
  14. *
  15. */
  16. namespace Obs\Internal\Resource;
  17. class OBSConstants extends Constants {
  18. const FLAG = 'OBS';
  19. const METADATA_PREFIX = 'x-obs-meta-';
  20. const HEADER_PREFIX = 'x-obs-';
  21. const ALTERNATIVE_DATE_HEADER = 'x-obs-date';
  22. const SECURITY_TOKEN_HEAD = 'x-obs-security-token';
  23. const TEMPURL_AK_HEAD = 'AccessKeyId';
  24. const COMMON_HEADERS = [
  25. 'content-length' => 'ContentLength',
  26. 'date' => 'Date',
  27. 'x-obs-request-id' => 'RequestId',
  28. 'x-obs-id-2' => 'Id2',
  29. 'x-reserved' => 'Reserved'
  30. ];
  31. }