packageDocumentation module import { FileHandler } from "../itwin-client/FileHandler" ; import { IModelBaseHandler } from "../imodelhub/BaseHandler" ; internal export class IModelBankHandler extends IModelBaseHandler { param handler param keepAliveDuration public constructor ( url , handler , keepAliveDuration = 30000 ) { super ( keepAliveDuration , handler ) ; this . baseUrl = url ; if ( url . startsWith ( "http://" ) ) { this . _agent = require ( "http" ) . Agent ( { keepAlive : keepAliveDuration > 0 , keepAliveMsecs : keepAliveDuration } ) ; } } public override baseUrl ? : string ; public override async getUrl ( excludeApiVersion ? ) { if ( this . _url ) return this . _url ; this . _url = this . baseUrl ; if ( ! excludeApiVersion ) { this . _url += `/${ this . apiVersion }` ; } return this . _url ! ; } }