Qore Mime Module Reference 1.6
Loading...
Searching...
No Matches
MIME Type Definitions

Variables

const Mime::MimeTypeCss = "text/css"
 Mime type for css.
 
const Mime::MimeTypeCsv = "text/csv"
 MIME type for csv files (http://tools.ietf.org/html/rfc4180)
 
const Mime::MimeTypeFormUrlEncoded = "application/x-www-form-urlencoded"
 Mime type for multipart form URL encoding.
 
const Mime::MimeTypeHtml = "text/html"
 MIME type for HTML.
 
const Mime::MimeTypeJar = "application/java-archive"
 Mime type for Java jar files.
 
const Mime::MimeTypeJava = "application/java"
 Mime type for Java class files.
 
const Mime::MimeTypeJavascript = "application/javascript"
 Mime type for Javascript.
 
const Mime::MimeTypeJavaSource = "text/x-java-source"
 Mime type for Java sources.
 
const Mime::MimeTypeJpeg = "image/jpeg"
 MIME type for jpeg images.
 
const Mime::MimeTypeJson = "application/json"
 Mime type for JSON.
 
const Mime::MimeTypeJsonRpc = MimeTypeJson
 Mime type for JSON-RPC.
 
const Mime::MimeTypeMultipartFormData = "multipart/form-data"
 Mime type for multipart form data.
 
const Mime::MimeTypeMultipartMixed = "multipart/mixed"
 Mime type for multipart mixed.
 
const Mime::MimeTypeMultipartRelated = "multipart/related"
 Mime type for multipart related.
 
const Mime::MimeTypeOctetStream = "application/octet-stream"
 MIME type for unknown file types.
 
const Mime::MimeTypePhp = "application/x-httpd-php"
 Mime type for PHP sources.
 
const Mime::MimeTypePng = "image/png"
 MIME type for png images.
 
const Mime::MimeTypePython = "text/x-python-source"
 Mime type for Python sources.
 
const Mime::MimeTypePythonCode = "application/x-python-code"
 Mime type for Python compiled code.
 
const Mime::MimeTypeQore = "text/x-qore"
 Mime type for Qore sources.
 
const Mime::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 Mime::MimeTypeSoapXml = "application/soap+xml"
 Mime type for SOAP XML messages (XML MIME type reference: http://tools.ietf.org/html/rfc3023)
 
const Mime::MimeTypeSvg = "image/svg+xml"
 Mime type for SVG files.
 
const Mime::MimeTypeText = "text/plain"
 MIME type for text.
 
const Mime::MimeTypeUnknown = MimeTypeOctetStream
 
const Mime::MimeTypeXml = "text/xml"
 Mime type for plain (human-readable) xml files.
 
const Mime::MimeTypeXmlApp = "application/xml"
 Mime type for more complicated (not human-readable) xml files.
 
const Mime::MimeTypeXmlRpc = MimeTypeXml
 Mime type for XML-RPC.
 
const Mime::MimeTypeYaml = "text/x-yaml"
 Mime type for yaml data files.
 
const Mime::MimeTypeYamlRpc = "application/x-yaml"
 Mime type for YAML-RPC.
 
const Mime::UrlEncodedChars = ...
 hash of non-alphanumeric characters that can be used unencoded in URL encoded format
 

Detailed Description

These are constants for common MIME types

Variable Documentation

◆ MimeTypeUnknown

const Mime::MimeTypeUnknown = MimeTypeOctetStream

MIME type for unknown file types

◆ UrlEncodedChars

const Mime::UrlEncodedChars = ...

hash of non-alphanumeric characters that can be used unencoded in URL encoded format

Note
the plus character can also appear unencoded in a URL string, but because many decoders interpret it as a space (which is it in the query part of a URL string), it's not in this list
See also
RFC 2738 2.2