Mime.php 952 B

12345678910111213141516171819202122232425262728
  1. <?php declare(strict_types=1);
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\HTTP;
  7. /**
  8. * Support class for MultiPart Mime Messages
  9. */
  10. class Mime
  11. {
  12. const TYPE_OCTETSTREAM = 'application/octet-stream';
  13. const TYPE_TEXT = 'text/plain';
  14. const TYPE_HTML = 'text/html';
  15. const ENCODING_7BIT = '7bit';
  16. const ENCODING_8BIT = '8bit';
  17. const ENCODING_QUOTEDPRINTABLE = 'quoted-printable';
  18. const ENCODING_BASE64 = 'base64';
  19. const DISPOSITION_ATTACHMENT = 'attachment';
  20. const DISPOSITION_INLINE = 'inline';
  21. const LINELENGTH = 72;
  22. const LINEEND = "\n";
  23. const MULTIPART_ALTERNATIVE = 'multipart/alternative';
  24. const MULTIPART_MIXED = 'multipart/mixed';
  25. const MULTIPART_RELATED = 'multipart/related';
  26. }