FEDERATION_RESPONSE_MAX_SIZE

FEDERATION_RESPONSE_MAX_SIZE

new FEDERATION_RESPONSE_MAX_SIZE(serverURL, domain, optsopt) → {void}

FederationServer handles a network connection to a federation server instance and exposes an interface for requests to that instance.

Source:
Parameters:
Name Type Attributes Description
serverURL string

The federation server URL (ex. https://acme.com/federation).

domain string

Domain this server represents

opts object <optional>

options object

Name Type Attributes Description
allowHttp boolean <optional>

Allow connecting to http servers, default: false. This must be set to false in production deployments! You can also use Config class to set this globally.

timeout number <optional>

Allow a timeout, default: 0. Allows user to avoid nasty lag due to TOML resolve issue. You can also use Config class to set this globally.

Returns:
Type:
void