|
|
string | get_mime_type_from_ext (string path, string def_type) |
| | returns the mime type for the given filename from the extension or the default type if the extension is not present or unknown
|
| |
| bool | is_filename_text (string path) |
| | Returns True if the given filename / path is known to provide text content, False if not.
|
| |
| bool | is_mime_json (string mime) |
| | Returns True if the MIME type is JSON-compatible.
|
| |
| bool | is_mime_text (string mime) |
| | Returns True if the given MIME type is known to provide text content, False if not.
|
| |
| binary | mime_decode_base64 (data str) |
| | returns a binary value from a string in "BASE64" encoding
|
| |
| string | mime_decode_base64_to_string (data str, soft< string > encoding) |
| | returns a string value from a string in "BASE64" encoding
|
| |
| string | mime_decode_header (string hdr) |
| | decodes a header string
|
| |
| string | mime_decode_quoted_printable (soft< bool > is_body, string str, soft< string > encoding) |
| | returns a string parsed from "quoted-printable" (or "QP") encoding
|
| |
| data | mime_decode_transfer_data (soft< bool > is_body, soft< string > ct, data mime_data, string enc) |
| | decodes data according to the given encoding
|
| |
| string | mime_decode_urlencoded_string (string str) |
| | decodes the given string from URL encoded format
|
| |
| string | mime_encode_base64 (data str, int len) |
| | returns a string in "BASE64" encoding according to RFC 2045
|
| |
| string | mime_encode_header_word_b (string str) |
| | returns a string in "B" ("BASE64") encoding for MIME header string words
|
| |
| string | mime_encode_header_word_q (string str) |
| | returns a string in "Q" ("quoted-printable") encoding for MIME header string words
|
| |
| string | mime_encode_quoted_printable (string str, bool hdr, soft< string > encoding) |
| | returns a string in "quoted-printable" (or "QP") encoding
|
| |
| data | mime_encode_transfer_data (data mime_data, string enc) |
| | encodes data according to the given encoding
|
| |
| string | mime_get_form_urlencoded_string (hash< auto > h) |
| | returns a string in MIME multipart form URL encoded format (for use with "Content-Type: application/x-www-form-urlencoded" data)
|
| |
| string | mime_get_urlencoded_string (auto val) |
| | Returns a single string in MIME URL encoded format.
|
| |
| hash< auto > | mime_parse_form_urlencoded_string (string str) |
| | returns a hash corresponding to the string in MIME multipart form URL encoded format (for use with "Content-Type: application/x-www-form-urlencoded" data)
|
| |
|
|
const auto | ContentTransEnc7Bit = ... |
| | default Content-Transfer-Encoding if none is present; implies lines < 1000 chars (= no encoding)
|
| |
|
const auto | ContentTransEnc8Bit = ... |
| | implies lines < 1000 chars (= no encoding)
|
| |
|
const auto | ContentTransEncBase64 = ... |
| | base-64 Content-Transfer-Encoding
|
| |
|
const auto | ContentTransEncBinary = ... |
| | binary transfer encoding; implies no maximum line length (= no encoding)
|
| |
|
const auto | ContentTransEncQuotedPrintable = ... |
| | quoted-printable Content-Transfer-Encoding
|
| |
| const auto | MimeBase64LineLen = ... |
| | maximum line length for base64 encoding
|
| |
| const auto | MimeQuotedPrintableLineLen = ... |
| | maximum line length for quoted-printable encoding
|
| |
|
const auto | MimeTypeCss = ... |
| | Mime type for css.
|
| |
|
const auto | MimeTypeCsv = ... |
| | MIME type for csv files (http://tools.ietf.org/html/rfc4180)
|
| |
|
const auto | MimeTypeFormUrlEncoded = ... |
| | Mime type for multipart form URL encoding.
|
| |
|
const auto | MimeTypeHtml = ... |
| | MIME type for HTML.
|
| |
|
const auto | MimeTypeJar = ... |
| | Mime type for Java jar files.
|
| |
|
const auto | MimeTypeJava = ... |
| | Mime type for Java class files.
|
| |
|
const auto | MimeTypeJavascript = ... |
| | Mime type for Javascript.
|
| |
|
const auto | MimeTypeJavaSource = ... |
| | Mime type for Java sources.
|
| |
|
const auto | MimeTypeJpeg = ... |
| | MIME type for jpeg images.
|
| |
|
const auto | MimeTypeJson = ... |
| | Mime type for JSON.
|
| |
|
const auto | MimeTypeJsonRpc = ... |
| | Mime type for JSON-RPC.
|
| |
|
const auto | MimeTypeMessage = ... |
| | Mime type for RFC 822 messages.
|
| |
|
const auto | MimeTypeMultipartAlternative = ... |
| | Mime type for multipart alternative.
|
| |
|
const auto | MimeTypeMultipartByteranges = ... |
| | Mime type for multipart byteranges (HTTP partial content)
|
| |
|
const auto | MimeTypeMultipartDigest = ... |
| | Mime type for multipart digest.
|
| |
|
const auto | MimeTypeMultipartEncrypted = ... |
| | Mime type for multipart encrypted (RFC 1847)
|
| |
|
const auto | MimeTypeMultipartFormData = ... |
| | Mime type for multipart form data.
|
| |
|
const auto | MimeTypeMultipartMixed = ... |
| | Mime type for multipart mixed.
|
| |
|
const auto | MimeTypeMultipartRelated = ... |
| | Mime type for multipart related.
|
| |
|
const auto | MimeTypeMultipartSigned = ... |
| | Mime type for multipart signed (RFC 1847)
|
| |
|
const auto | MimeTypeOctetStream = ... |
| | MIME type for unknown file types.
|
| |
|
const auto | MimeTypePdf = ... |
| | Mime type for PDF documents.
|
| |
|
const auto | MimeTypePhp = ... |
| | Mime type for PHP sources.
|
| |
|
const auto | MimeTypePng = ... |
| | MIME type for png images.
|
| |
|
const auto | MimeTypePython = ... |
| | Mime type for Python sources.
|
| |
|
const auto | MimeTypePythonCode = ... |
| | Mime type for Python compiled code.
|
| |
|
const auto | MimeTypeQore = ... |
| | Mime type for Qore sources.
|
| |
|
const auto | MimeTypes = ... |
| | A map of default mime types per file extension; the hash keys are file extensions in lower-case without the dot (ex: "txt")
|
| |
| const auto | MimeTypesJson = ... |
| | Set of MIME types that are JSON-compatible (can be parsed with parse_json())
|
| |
|
const auto | MimeTypeSoapXml = ... |
| | Mime type for SOAP XML messages (XML MIME type reference: http://tools.ietf.org/html/rfc3023)
|
| |
|
const auto | MimeTypeSse = ... |
| | Mime type for server-sent events.
|
| |
|
const auto | MimeTypeSvg = ... |
| | Mime type for SVG files.
|
| |
|
const auto | MimeTypeText = ... |
| | MIME type for text.
|
| |
|
const auto | MimeTypeUnknown = ... |
| | MIME type for unknown file types.
|
| |
|
const auto | MimeTypeXml = ... |
| | Mime type for plain (human-readable) xml files.
|
| |
|
const auto | MimeTypeXmlApp = ... |
| | Mime type for more complicated (not human-readable) xml files.
|
| |
|
const auto | MimeTypeXmlRpc = ... |
| | Mime type for XML-RPC.
|
| |
|
const auto | MimeTypeYaml = ... |
| | Mime type for yaml data files.
|
| |
|
const auto | MimeTypeYamlRpc = ... |
| | Mime type for YAML-RPC.
|
| |
|
const auto | MPT_ALTERNATIVE = ... |
| | for sending multiple "alternatives" of the same content (http://tools.ietf.org/html/rfc2046#section-5.1.4)
|
| |
|
const auto | MPT_BYTERANGES = ... |
| | for sending noncontiguous byte ranges of a single message (http://tools.ietf.org/html/rfc2616)
|
| |
|
const auto | MPT_DIGEST = ... |
| | for sending multiple text messages (http://tools.ietf.org/html/rfc2046#section-5.1.5)
|
| |
|
const auto | MPT_ENCRYPTED = ... |
| | for sending encrypted messages (http://tools.ietf.org/html/rfc1847#section-2.2)
|
| |
|
const auto | MPT_FORM_DATA = ... |
| | for form data (http://tools.ietf.org/html/rfc1867, http://tools.ietf.org/html/rfc2388)
|
| |
|
const auto | MPT_MESSAGE = ... |
| | for email/MIME messages with headers (http://tools.ietf.org/html/rfc2046)
|
| |
|
const auto | MPT_MIXED = ... |
| | for sending files with different "Content-Type" headers (http://tools.ietf.org/html/rfc2046#section-5.1.3)
|
| |
|
const auto | MPT_RELATED = ... |
| | for sending multiple components of an aggregated whole (http://tools.ietf.org/html/rfc2387)
|
| |
|
const auto | MPT_SIGNED = ... |
| | to attach a digital signature to a message (http://tools.ietf.org/html/rfc1847#section-2.1)
|
| |
| const auto | UrlEncodedChars = ... |
| | hash of non-alphanumeric characters that can be used unencoded in URL encoded format
|
| |
public Mime namespace defines constants and functions relevant to MIME