graphdb
Version:
Javascript client library supporting GraphDB and RDF4J REST API.
39 lines (38 loc) • 1.11 kB
TypeScript
export = ServerClientConfig;
/**
* Configuration wrapper used for initialization of {@link ServerClient}
* instances.
*
* @class
* @extends ClientConfig
* @author Mihail Radkov
* @author Svilen Velikov
* @author Teodossi Dossev
*/
declare class ServerClientConfig extends ClientConfig {
/**
* Server client configuration constructor.
* Sets configuration default value to
* [timeout]{@link ServerClientConfig#timeout}
* and [keepAlive]{@link ServerClientConfig#keepAlive}
*
* @param {string} [endpoint] Endpoint url.
*/
constructor(endpoint?: string);
/**
* Sets the timeout for HTTP requests.
*
* @param {number} timeout the timeout in milliseconds before the
* request times out.
* @return {this} the concrete configuration config for method chaining
*/
setTimeout(timeout: number): this;
timeout: number;
/**
* Returns the HTTP requests's timeout.
*
* @return {number} the timeout in milliseconds
*/
getTimeout(): number;
}
import ClientConfig = require("../http/client-config");