DevToolsServerOptions Class
The options of a DevToolsServer.
public sealed class DevToolsServerOptionsConstructors
| Name | Description |
|---|---|
| DevToolsServerOptions() |
DevToolsServerOptions()
DevToolsServerOptions.cspublic DevToolsServerOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| BindAddress | Gets or sets the address the server listens on. The default is IPAddress.Loopback: only the local clients can connect. |
| DocumentLoader | 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). |
| MaxConnections | 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. |
| Port | Gets or sets the TCP port the server listens on. The default is 0: a free port is chosen (see DevToolsServer.Port). |
| ScriptEngineOptions | 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. |
| UseSystemFonts | 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. |
BindAddress
DevToolsServerOptions.csGets 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
DocumentLoader
DevToolsServerOptions.csGets 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
MaxConnections
DevToolsServerOptions.csGets 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
ScriptEngineOptions
DevToolsServerOptions.csGets 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; }Property value
UseSystemFonts
DevToolsServerOptions.csGets 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; }