Constants -
mime
- LEADING string leading
-
Header is placed before the payload of the request/response.
- TRAILING string trailing
-
Header is placed after the payload of the request/response.
- APPLICATION_OCTET_STREAM string application/octet-stream
-
Represents the
application/octet-streammedia type.
- APPLICATION_JSON string application/json
-
Represents the
application/jsonmedia type.
- APPLICATION_XML string application/xml
-
Represents the
application/xmlmedia type.
- APPLICATION_SVG_XML string application/svg+xml
-
Represents the
application/svg+xmlmedia type.
- APPLICATION_XHTML_XML string application/xhtml+xml
-
Represents the
application/xhtml+xmlmedia type.
- APPLICATION_SOAP_XML string application/soap+xml
-
Represents the
application/soap+xmlmedia type.
- APPLICATION_FORM_URLENCODED string application/x-www-form-urlencoded
-
Represents the
application/x-www-form-urlencodedmedia type.
- APPLICATION_PDF string application/pdf
-
Represents the
application/pdfmedia type.
- IMAGE_JPEG string image/jpeg
-
Represents the
image/jpegmedia type.
- IMAGE_GIF string image/gif
-
Represents the
image/gifmedia type.
- IMAGE_PNG string image/png
-
Represents the
image/pngmedia type.
- MULTIPART_FORM_DATA string multipart/form-data
-
Represents the
multipart/form-datamedia type.
- MULTIPART_MIXED string multipart/mixed
-
Represents the
multipart/mixedmedia type.
- MULTIPART_ALTERNATIVE string multipart/alternative
-
Represents the
multipart/alternativemedia type.
- MULTIPART_RELATED string multipart/related
-
Represents the
multipart/relatedmedia type.
- MULTIPART_PARALLEL string multipart/parallel
-
Represents the
multipart/parallelmedia type.
- TEXT_PLAIN string text/plain
-
Represents the
text/plainmedia type.
- TEXT_HTML string text/html
-
Represents the
text/htmlmedia type.
- TEXT_XML string text/xml
-
Represents the
text/xmlmedia type.
- ENCODE_ERROR string {ballerina/mime}EncodingFailed
-
Identifies encoding errors.
- DECODE_ERROR string {ballerina/mime}DecodingFailed
-
Identifies decoding errors.
- GENERIC_MIME_ERROR string {ballerina/mime}GenericMimeError
-
Identifies generic errors related to MIME.
- SET_HEADER_FAILED string {ballerina/mime}SetHeaderFailed
-
Identifies the set header errors.
- READING_HEADER_FAILED string {ballerina/mime}ReadingHeaderFailed
-
Identifies header parsing errors.
- PARSER_ERROR string {ballerina/mime}ParsingEntityBodyFailed
-
Identifies entity body parsing errors.
- INVALID_CONTENT_TYPE string {ballerina/mime}InvalidContentType
-
Identifies errors related to content-type header.
- HEADER_UNAVAILABLE string {ballerina/mime}HeaderUnavailable
-
Identifies errors related to header unavailability.
- IDLE_TIMEOUT_TRIGGERED string {ballerina/mime}IdleTimeoutTriggeredError
-
Identifies errors related to read/write timeouts.
- NO_CONTENT_ERROR_CODE string {ballerina/mime}NoContentError
-
Identifies the errors occurred due to payloads with no content.
- BOUNDARY string boundary
-
Key name for
boundaryparameter in MediaType. This is needed for composite type media types.
- START string start
-
Key name for
startparameter in MediaType. This determines which part in the multipart message contains the payload.
- TYPE string type
-
Key name for
typeparameter in MediaType. This indicates the MIME media type of therootbody part.
- CHARSET string charset
-
Key name for
charsetparameter in MediaType. This indicates the character set of the body text.
- DEFAULT_CHARSET string UTF-8
-
Default charset to be used with MIME encoding and decoding.
- CONTENT_ID string content-id
-
Represents
content-idheader name.
- CONTENT_LENGTH string content-length
-
Represents
content-lengthheader name.
- CONTENT_TYPE string content-type
-
Represents
content-typeheader name.
- CONTENT_DISPOSITION string content-disposition
-
Represents
content-dispositionheader name.