MCPcopy Create free account
hub / github.com/LizardByte/Sunshine / savePin

Function savePin

src/confighttp.cpp:1348–1383  ·  view source on GitHub ↗

* @brief Send a pin code to the host. The pin is generated from the Moonlight client during the pairing process. * @param response The HTTP response object. * @param request The HTTP request object. * The body for the post request should be JSON serialized in the following format: * @code{.json} * { * "pin": " ", * "name": "Friendly Client Name" * } * @endcode

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 9

check_content_typeFunction · 0.85
authenticateFunction · 0.85
get_client_idFunction · 0.85
validate_csrf_tokenFunction · 0.85
bad_requestFunction · 0.85
pinFunction · 0.85
send_responseFunction · 0.85
print_reqFunction · 0.70
parseFunction · 0.70

Tested by

no test coverage detected