MIME utility functions

Use these functions to create a MIME header.

set_mime_text
Set the MIME type to text.
void set_mime_text(FILE *out, ObjectType type = unknown_type, const string &version = DVR, EncodingType enc = x_plain)
set_mime_binary
Create MIME headers for binary data.
void set_mime_binary(FILE *out, ObjectType type = unknown_type, const string &version = DVR, EncodingType enc = x_plain)
set_mime_error
Set the MIME text type to ``error.''
void set_mime_error(FILE *out, int code = HTERR_NOT_FOUND, const string &reason = "Dataset not found", const string &version = DVR)
These functions are used to create the MIME header for a message from a server to a client. They can, of course, be used for any other suitable purpose.

alphabetic index hierarchy of classes


generated by doc++