DevToolsServerOptions Class

The options of a DevToolsServer.

public sealed class DevToolsServerOptions

Constructors

NameDescription
DevToolsServerOptions()

DevToolsServerOptions()

DevToolsServerOptions.cs
public DevToolsServerOptions()

No documentation is available.

Properties

NameDescription
BindAddressGets or sets the address the server listens on. The default is IPAddress.Loopback: only the local clients can connect.
DocumentLoaderGets or sets the loader of the documents and of the resources of the pages (see BrowsingContextOptions.DocumentLoader). The default is null: nothing is fetched from the network, the pages can only use the content they are given (e.g. page.setContent()) and the responses of the interception of the requests (the Fetch domain, e.g. page.route()). Use DocumentLoader.Create to let the pages load any URL (the clients can then make the server send requests to any host: do not expose such a server to untrusted clients).
MaxConnectionsGets or sets the maximum number of simultaneous connections. The default is null: no limit. A client that connects while the limit is reached waits for a connection to close.
PortGets or sets the TCP port the server listens on. The default is 0: a free port is chosen (see DevToolsServer.Port).
ScriptEngineOptionsGets or sets the options of the script engines of the browser contexts (one engine per browser context), e.g. the timeout of a script. The default is null: the default options.
UseSystemFontsGets or sets whether the pages can use the fonts installed on the machine (see BrowsingContextOptions.UseSystemFonts). The default is false: the pages use the fonts bundled with the library and their web fonts.

Gets or sets the address the server listens on. The default is IPAddress.Loopback: only the local clients can connect.

public IPAddress BindAddress { get; set; }

Property value

IPAddress

Gets or sets the loader of the documents and of the resources of the pages (see BrowsingContextOptions.DocumentLoader). The default is null: nothing is fetched from the network, the pages can only use the content they are given (e.g. page.setContent()) and the responses of the interception of the requests (the Fetch domain, e.g. page.route()). Use DocumentLoader.Create to let the pages load any URL (the clients can then make the server send requests to any host: do not expose such a server to untrusted clients).

public DocumentLoader? DocumentLoader { get; set; }

Property value

DocumentLoader?

Gets or sets the maximum number of simultaneous connections. The default is null: no limit. A client that connects while the limit is reached waits for a connection to close.

public int? MaxConnections { get; set; }

Property value

int?

Gets or sets the TCP port the server listens on. The default is 0: a free port is chosen (see DevToolsServer.Port).

public int Port { get; set; }

Property value

int

ScriptEngineOptions

DevToolsServerOptions.cs

Gets or sets the options of the script engines of the browser contexts (one engine per browser context), e.g. the timeout of a script. The default is null: the default options.

public JavaScriptScriptEngineOptions? ScriptEngineOptions { get; set; }

Gets or sets whether the pages can use the fonts installed on the machine (see BrowsingContextOptions.UseSystemFonts). The default is false: the pages use the fonts bundled with the library and their web fonts.

public bool UseSystemFonts { get; set; }

Property value

bool