![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Functions | |
| int | n_http_mime_table_check (void) |
| check that the built-in table is sorted, as its lookup requires | |
| const char * | n_http_mime_type (const char *path, size_t len) |
| media type for a path or file name, from its extension | |
| int n_http_mime_table_check | ( | void | ) |
check that the built-in table is sorted, as its lookup requires
Definition at line 132 of file n_http_mime.c.
References _mime_table.
Referenced by main().
| const char * n_http_mime_type | ( | const char * | path, |
| size_t | len ) |
media type for a path or file name, from its extension
"/Games/a/index.HTML?x=1" gives "text/html". The extension is what follows the last '.' of the last segment ("/a.b/file" has none, nor do ".htaccess" and "file."). Text types are returned without a charset.
| path | the path or name (may be NULL only when len is 0) |
| len | its length |
| path | the path or name (may be NULL only when len is 0) |
| len | its length |
Definition at line 90 of file n_http_mime.c.
References _mime_table.
Referenced by expect_type(), and main().