Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

vs_get_mime_type() Function

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.

Syntax

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

Return Values

A pointer to a string representing the MIME type. The caller must FREE this string.

Parameters

const VirtualServer* vs represents the virtual server of interest.

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