Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/DemonMartin/tlsClient
/ functions
Functions
44 in github.com/DemonMartin/tlsClient
⨍
Functions
44
◇
Types & classes
21
↓ 7 callers
Method
convertUrl
(url: URL | string)
src/index.ts:632
↓ 7 callers
Method
request
(options: Partial<TlsClientOptions>)
src/index.ts:693
↓ 5 callers
Method
exec
(func: string, args: unknown[])
src/index.ts:874
↓ 5 callers
Method
init
()
src/index.ts:568
↓ 3 callers
Method
convertBody
(body: RequestBody)
src/index.ts:625
↓ 3 callers
Method
destroySession
* @description Destroys the sessionId * @param {string} [id=this.sessionId] - The ID associated with the memory to free. * @returns {Promise
src/index.ts:649
↓ 2 callers
Method
get
* @description Send a GET request * @param {URL|string} url - The URL to send the request to * @param {Partial<TlsClientOptions>} [options={
src/index.ts:708
↓ 2 callers
Method
terminate
* @description Terminates the worker pool and unloads the TLS library. * @returns {Promise<boolean>} True if the termination was successful, fals
src/utils/client.ts:155
↓ 1 callers
Method
combineOptions
(options: Partial<TlsClientOptions>)
src/index.ts:600
↓ 1 callers
Function
createInstance
()
src/utils/worker.ts:13
↓ 1 callers
Method
downloadLibrary
* @description Downloads the TLS library if it does not exist. * @returns {Promise<void>} Promise that resolves when the library is downloaded
src/utils/client.ts:81
↓ 1 callers
Method
getTLSDependencyPath
(customPath?: string | null)
src/utils/path.ts:62
↓ 1 callers
Function
getWorkerPath
()
src/utils/client.ts:8
↓ 1 callers
Method
libraryExists
* @description Checks if the TLS library exists. * @returns {boolean} True if the library exists, false otherwise.
src/utils/client.ts:73
↓ 1 callers
Function
main
()
tests/test.simple_request.cjs:3
↓ 1 callers
Function
main
()
tests/test.simple_request.ts:79
↓ 1 callers
Method
open
* @description Opens the TLS library and initializes the worker pool. * @returns {Promise<void>} Promise that resolves when the library is opened
src/utils/client.ts:110
↓ 1 callers
Method
retryRequest
(options: TlsClientOptions)
src/index.ts:677
↓ 1 callers
Function
runAtConcurrency
( session: SessionClient, concurrency: number, totalRequests: number, )
tests/test.simple_request.ts:37
↓ 1 callers
Method
sendRequest
(options: TlsClientOptions)
src/index.ts:665
↓ 1 callers
Method
setDetails
()
src/utils/path.ts:29
↓ 1 callers
Function
startServer
()
tests/test.simple_request.ts:9
↓ 1 callers
Method
startWorkerPool
* @description Starts the worker pool. * @returns {Piscina} The Piscina worker pool.
src/utils/client.ts:124
↓ 1 callers
Function
stopServer
Stops accepting connections, tears down open sockets, then resolves when the server is fully closed.
tests/test.simple_request.ts:24
Method
[Symbol.asyncDispose]
* Explicit async cleanup for `await using session = new SessionClient(...)` (TypeScript 5.2+).
src/index.ts:578
Method
addCookiesToSession
* @deprecated Use requestCookies instead * @description Add cookies to a given session * @param {string} sessionId - The existing session ID
src/index.ts:857
Method
constructor
* @description Create a new SessionClient * @param {ModuleClient} moduleClient - The shared ModuleClient instance * @param {TlsClientDefault
src/index.ts:472
Method
constructor
* @description Creates a new ModuleClient instance. * @param {ModuleClientOptions} [options] - Configuration options for the ModuleClient *
src/utils/client.ts:57
Method
constructor
()
src/utils/path.ts:19
Method
delete
* @description Send a DELETE request * @param {URL|string} url - The URL to send the request to * @param {Partial<TlsClientOptions>} [option
src/index.ts:769
Method
destroyAll
* @description Destroy all existing sessions in order to release allocated memory. * @returns {Promise<unknown>} Promise that resolves when all s
src/index.ts:870
Method
getCookiesFromSession
* @description Get the cookies for a given session and URL * @param {string} sessionId - The existing session ID. * @param {string} url - Th
src/index.ts:842
Method
getPoolStats
* @description Get current pool statistics. * @returns {PoolStats | null} Pool statistics.
src/utils/client.ts:140
Method
getSession
* @description Gets the session ID if session rotation is not enabled. * @returns {string} The session ID, or null if session rotation is enabled
src/index.ts:640
Function
handler
(task: WorkerTask)
src/utils/worker.ts:31
Method
head
* @description Send a HEAD request * @param {URL|string} url - The URL to send the request to * @param {Partial<TlsClientOptions>} [options=
src/index.ts:786
Method
options
* @description Send an OPTIONS request * @param {URL|string} url - The URL to send the request to * @param {Partial<TlsClientOptions>} [opti
src/index.ts:825
Function
outExtension
(ctx)
tsup.config.ts:16
Method
patch
* @description Send a PATCH request * @param {URL|string} url - The URL to send the request to * @param {object|string} body - The request b
src/index.ts:804
Method
post
* @description Send a POST request * @param {URL|string} url - The URL to send the request to * @param {object|string} body - The request bo
src/index.ts:726
Method
put
* @description Send a PUT request * @param {URL|string} url - The URL to send the request to * @param {object|string} body - The request bod
src/index.ts:748
Function
runner
()
tests/test.simple_request.ts:48
Method
setDefaultCookies
* @description Set the default cookies for the SessionClient * @param {Cookie[]} cookies - Array of cookies to set as defaults * @returns {v
src/index.ts:587
Method
setDefaultHeaders
* @description Set the default headers for the SessionClient * @param {Record<string, string>} headers - Object containing header key-value pairs
src/index.ts:596