Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_http_mime.h
Go to the documentation of this file.
1
/*
2
* Nilorea Library
3
* Copyright (C) 2005-2026 Castagnier Mickael
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14
* implied. See the License for the specific language governing
15
* permissions and limitations under the License.
16
*
17
* SPDX-License-Identifier: Apache-2.0
18
*/
19
35
36
#ifndef __NILOREA_HTTP_MIME_HEADER
37
#define __NILOREA_HTTP_MIME_HEADER
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
47
48
#include <stddef.h>
49
58
const
char
*
n_http_mime_type
(
const
char
* path,
size_t
len);
59
62
int
n_http_mime_table_check
(
void
);
63
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* __NILOREA_HTTP_MIME_HEADER */
n_http_mime_table_check
int n_http_mime_table_check(void)
check that the built-in table is sorted, as its lookup requires
Definition
n_http_mime.c:132
n_http_mime_type
const char * n_http_mime_type(const char *path, size_t len)
media type for a path or file name, from its extension
Definition
n_http_mime.c:90
include
nilorea
n_http_mime.h
Generated on
for Nilorea Library by
1.15.0