websGetRequestType | GoAhead WebServer API | GoAhead EMF |
Return the Mime type of the request
#include "webs.h" char_t *websGetRequestType(webs_t wp);
wp | Web server connection handle |
The websGetRequestType procedure returns the Mime type of the web page document. The Mime type is automatically determined by the GoAhead WebServer by examining the URL extension. For example URLs with a ".htm" extension have a mime type of "text/html".
For users of the GoAhead WebServer, mime types can be defined in the mime.c source file.
Pointer to a statically allocated string containing the mime type string. Do not call bfree.
type = websGetRequestType(wp);
websGetRequestDir, websGetRequestPassword, websGetRequestPath