ContentType.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\utils\Ocr\Constant;
  8. /*
  9. * Licensed to the Apache Software Foundation (ASF) under one
  10. * or more contributor license agreements. See the NOTICE file
  11. * distributed with this work for additional information
  12. * regarding copyright ownership. The ASF licenses this file
  13. * to you under the Apache License, Version 2.0 (the
  14. * "License"); you may not use this file except in compliance
  15. * with the License. You may obtain a copy of the License at
  16. *
  17. * http://www.apache.org/licenses/LICENSE-2.0
  18. *
  19. * Unless required by applicable law or agreed to in writing,
  20. * software distributed under the License is distributed on an
  21. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  22. * KIND, either express or implied. See the License for the
  23. * specific language governing permissions and limitations
  24. * under the License.
  25. */
  26. /**
  27. * 常用HTTP Content-Type常量
  28. */
  29. class ContentType {
  30. //表单类型Content-Type
  31. const CONTENT_TYPE_FORM = "application/x-www-form-urlencoded; charset=UTF-8";
  32. // 流类型Content-Type
  33. const CONTENT_TYPE_STREAM = "application/octet-stream; charset=UTF-8";
  34. //JSON类型Content-Type
  35. const CONTENT_TYPE_JSON = "application/json; charset=UTF-8";
  36. //XML类型Content-Type
  37. const CONTENT_TYPE_XML = "application/xml; charset=UTF-8";
  38. //文本类型Content-Type
  39. const CONTENT_TYPE_TEXT = "application/text; charset=UTF-8";
  40. }