Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide


The vs_get_mime_type function determines the MIME type that would be returned in the content-type: header for the given URI.

The caller should FREE the returned string when done with it.


char* vs_get_mime_type(const VirtualServer* vs, const char* uri);


A pointer to a string representing the MIME type. It is the caller's responsibility to FREE this string.


const VirtualServer* vs represents the virtual server of interest.

const char* uri is the URI whose MIME type is of interest.