Settings¶
-
class
Tribler.Core.Modules.restapi.settings_endpoint.
SettingsEndpoint
(session)[source]¶ This endpoint is reponsible for handing all requests regarding settings and configuration.
-
parse_setting
(section, option, value)[source]¶ Set a specific Tribler setting. Throw a ValueError if this setting is not available.
-
render_GET
(request)[source]¶ -
GET
/settings
¶
A GET request to this endpoint returns all the session settings that can be found in Tribler. It also returns the runtime-determined ports, i.e. the port for the video server. Please note that a port with a value of -1 in the settings means that the port is randomly assigned at startup.
Example request:
curl -X GET http://localhost:8085/settings
Example response:
{ "settings": { "libtorrent": { "anon_listen_port": -1, ... }, ... } }
-
-