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

vs_get_mime_type

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);

Returns

A pointer to a string representing the MIME type. It is the caller's responsibility to 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.