]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/docs/api/mg_send_file.md
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / civetweb / docs / api / mg_send_file.md
1 # Civetweb API Reference
2
3 ### `mg_send_file( conn, path );`
4
5 ### Parameters
6
7 | Parameter | Type | Description |
8 | :--- | :--- | :--- |
9 |**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10 |**`path`**|`const char *`|The full path and filename of the file|
11
12 ### Return Value
13
14 *none*
15
16 ### Description
17
18 The function `mg_send_file()` sends the contents of a file over a connection to the remote peer. The function also adds the necessary HTTP headers.
19
20 ### See Also
21
22 * [`mg_printf();`](mg_printf.md)
23 * [`mg_send_mime_file();`](mg_send_mime_file.md)
24 * [`mg_send_mime_file2();`](mg_send_mime_file2.md)
25 * [`mg_write();`](mg_write.md)