]> git.proxmox.com Git - ceph.git/blame - ceph/src/civetweb/docs/api/mg_get_request_link.md
buildsys: switch source download to quincy
[ceph.git] / ceph / src / civetweb / docs / api / mg_get_request_link.md
CommitLineData
11fdf7f2
TL
1# Civetweb API Reference
2
3### `mg_get_request_link( conn, buf, buflen );`
4
5### Parameters
6
7| Parameter | Type | Description |
8| :--- | :--- | :--- |
9|**`conn`**|`struct mg_connection *`| A pointer referencing the connection |
10|**`buf`**|`char *`| A buffer to store the link |
11|**`buflen`**|`size_t`| Size of the buffer |
12
13### Return Value
14
15| Type | Description |
16| :--- | :--- |
17|`int`| Return code: <0 for error, >=0 for success |
18
19### Description
20
21Store a formatted link corresponding to the current request.
22
23E.g., returns
24`http://mydomain.com:8080/path/to/callback.ext`
25or
26`http://127.0.0.1:8080/path/to/callback.ext`
27depending on the auth check settings.
28
29### See Also