setHttpServerSettings

TrueConf7/5/26About 1 min

setHttpServerSettings

Description

Configure the HTTP server settings

void setHttpServerSettings(object jsonSettings)

Parameters

NameDescription
jsonSettingsThe settings that should be changed
• httpServerPort - Port for the HTTP server. Restarting the HTTP server is required for the changes to take effect
• httpServerConnectionsLimit - Maximum number of concurrently processed connections. Restarting the HTTP server is required for the changes to take effect
• httpServerMaxPostFileSizeInBytes - Maximum file value in bytes for the POST method. It applies immediately; restarting the HTTP server is not required

JsonSettings example

var jsonSettings = new {
    httpServerPort = 7777,
    httpServerConnectionsLimit = 10,
    httpServerMaxPostFileSizeInBytes = 1048576
}

Response example

{
    "method": "setHttpServerSettings",
    "requestId" : "1",
    "result": true
}

Response Parameters

NameDescription
requestIdA unique request identifier
resultA flag indicating whether the request was successful

See also

Last Updated: