MCPcopy Create free account

hub / github.com/Danny-Dasilva/CycleTLS / functions

Functions362 in github.com/Danny-Dasilva/CycleTLS

↓ 89 callersMethodError
()
cycletls/errors.go:116
↓ 88 callersMethodClose
Close closes the channels
cycletls/index.go:1363
↓ 80 callersMethodDo
Do creates a single HTTP request for integration tests
cycletls/index.go:1378
↓ 53 callersFunctionInit
Init creates a CycleTLS client with v1 default behavior (chan Response) Use WithRawBytes() option for performance enhancement with chan []byte
cycletls/index.go:1339
↓ 42 callersMethodjson
()
src/index.ts:89
↓ 37 callersMethodWrite
(p []byte)
cycletls/connect.go:314
↓ 36 callersMethodexit
()
src/index.ts:1096
↓ 36 callersFunctioninitCycleTLS
( initOptions: { port?: number; debug?: boolean; timeout?: number; executablePath?: string;
src/index.ts:1099
↓ 35 callersMethodget
(url: string, options: CycleTLSRequestOptions)
src/index.ts:1078
↓ 28 callersMethodtext
()
src/index.ts:90
↓ 24 callersMethodString
String returns the string representation of the HTTP/2 fingerprint
cycletls/http2.go:105
↓ 24 callersFunctionwithCycleTLS
* Wrapper function that ensures CycleTLS instance cleanup even if test fails. * Use this for individual test cases that need a single CycleTLS instan
tests/test-utils.js:22
↓ 15 callersMethodclose
()
src/index.ts:121
↓ 14 callersMethodarrayBuffer
()
src/index.ts:91
↓ 14 callersMethodreadU8
()
src/index.ts:1023
↓ 12 callersMethodrequest
( url: string, options: CycleTLSRequestOptions, method: "head" | "get" | "post" | "put" | "delete"
src/index.ts:618
↓ 11 callersMethodClose
()
cycletls/connect.go:318
↓ 11 callersFunctionConvertHttpHeader
ConvertHttpHeader converts http.Header to fhttp.Header
cycletls/utils.go:906
↓ 10 callersFunctionConvertFhttpHeader
ConvertFhttpHeader converts fhttp.Header to http.Header
cycletls/utils.go:897
↓ 10 callersFunctioncreateErrorMessage
(StatusCode int, err error, op string)
cycletls/errors.go:31
↓ 8 callersFunctionQUICStringToSpec
QUICStringToSpec creates a ClientHelloSpec based on a QUIC fingerprint string
cycletls/utils.go:1161
↓ 8 callersFunctionparseUserAgent
ParseUserAgent returns the pseudo header order and user agent string for chrome/firefox
cycletls/utils.go:61
↓ 6 callersMethodJSONBody
JSONBody parses the response body as JSON
cycletls/index.go:1331
↓ 6 callersFunctionStringToSpec
StringToSpec creates a ClientHelloSpec based on a JA3 string
cycletls/utils.go:230
↓ 6 callersFunctionWithRawBytes
WithRawBytes enables the performance enhancement channel (RespChanV2 chan []byte) Use this option for performance-critical applications that can handl
cycletls/index.go:120
↓ 6 callersMethoddelete
(url: string, options: CycleTLSRequestOptions)
src/index.ts:1081
↓ 6 callersFunctionnewRoundTripper
(browser Browser, dialer ...proxy.ContextDialer)
cycletls/roundtripper.go:616
↓ 6 callersMethodreadString
(encoding?: BufferEncoding)
src/index.ts:1059
↓ 6 callersFunctionstreamToBuffer
(stream: Readable)
src/index.ts:941
↓ 5 callersFunctionCompareFiles
(filepath1 string, filepath2 string)
cycletls/tests/integration/images_test.go:63
↓ 5 callersMethodDial
(network, addr string)
cycletls/connect.go:31
↓ 5 callersMethodDialContext
(_ context.Context, network, addr string)
cycletls/connect.go:27
↓ 5 callersFunctionGetRequest
(url string, client cycletls.CycleTLS)
cycletls/tests/integration/images_test.go:78
↓ 5 callersMethodRoundTrip
RoundTrip implements the http.RoundTripper interface
cycletls/http3.go:183
↓ 5 callersFunctionWriteFile
(Body string, Filepath string)
cycletls/tests/integration/images_test.go:43
↓ 5 callersMethodblob
()
src/index.ts:92
↓ 5 callersFunctionnewClientWithReuse
newClientWithReuse creates a new http client with configurable connection reuse
cycletls/client.go:296
↓ 5 callersMethodreadU16
()
src/index.ts:1027
↓ 5 callersFunctionwithCycleTLS
( portOrOptions: number | CycleTLSOptions, testFn: (cycleTLS: CycleTLSClient) => Promise<T> )
tests/test-utils.ts:29
↓ 4 callersMethodConnect
Connect establishes an SSE connection and returns an SSE response
cycletls/sse.go:68
↓ 4 callersFunctionConvertUtlsConfig
ConvertUtlsConfig converts utls.Config to tls.Config
cycletls/utils.go:915
↓ 4 callersFunctionNewHTTP2Fingerprint
NewHTTP2Fingerprint creates a new HTTP2Fingerprint from string format Format: settings|streamDependency|exclusive|priorityOrder Example: "1:65536,2:0,
cycletls/http2.go:40
↓ 4 callersFunctionNewHTTP3Transport
NewHTTP3Transport creates a new HTTP/3 transport
cycletls/http3.go:51
↓ 4 callersFunctionNewWebSocketClient
NewWebSocketClient creates a new WebSocket client
cycletls/websocket.go:26
↓ 4 callersMethodNextEvent
NextEvent reads the next event from the SSE stream
cycletls/sse.go:135
↓ 4 callersFunctionStringToTLS13CompatibleSpec
StringToTLS13CompatibleSpec creates a TLS 1.3 compatible ClientHelloSpec by filtering curves
cycletls/utils.go:372
↓ 4 callersFunctioncleanupAll
* Emergency cleanup of all active instances * This is called automatically on process exit
tests/test-utils.ts:136
↓ 4 callersFunctioncleanupAll
* Emergency cleanup of all active instances * This is called automatically on process exit
tests/test-utils.js:122
↓ 4 callersFunctioncompareFiles
(file1: string, file2: string)
tests/images.test.ts:64
↓ 4 callersFunctionextractNumber
Helper function to extract number from "key:value" format
cycletls/tests/integration/connection_reuse_test.go:291
↓ 4 callersFunctiongetHeadersFromJar
(jar *cookiejar.Jar, url *url.URL)
cycletls/tests/integration/cookiejar_test.go:67
↓ 4 callersFunctionstartStrictH2Server
Start a local HTTP/2 server with strict flow control settings.
tests/http2-post-body.test.ts:41
↓ 3 callersMethodApply
Apply configures the HTTP/2 connection with the specified fingerprint. HeaderPriority is driven by the parsed Exclusive / StreamDep / Weight fields.
cycletls/http2.go:131
↓ 3 callersMethodConnect
Connect establishes a WebSocket connection
cycletls/websocket.go:66
↓ 3 callersFunctionModernChromeSpec
(forceHTTP1 bool)
cycletls/utils.go:135
↓ 3 callersFunctionNewSSEClient
NewSSEClient creates a new SSE client
cycletls/sse.go:46
↓ 3 callersMethodQueue
Queue queues a request (simplified for integration tests)
cycletls/index.go:1357
↓ 3 callersMethodcleanup
()
src/index.ts:537
↓ 3 callersFunctioncleanupCycleTLS
* Manual cleanup function for instances created with createSafeCycleTLS * * @param {object} instance - CycleTLS instance to cleanup
tests/test-utils.js:69
↓ 3 callersFunctioncreateSafeCycleTLS
* Alternative approach for tests that need multiple CycleTLS instances * or want more control over instance lifecycle. * * @param {object} options
tests/test-utils.js:58
↓ 3 callersFunctiondoProxyRequestWithRetry
doProxyRequestWithRetry retries httpbin.org GETs through the SOCKS proxy on 408/502/503 — these are upstream-flake codes from httpbin under proxy load
cycletls/tests/integration/proxy_test.go:33
↓ 3 callersMethodgetInstance
()
src/index.ts:129
↓ 3 callersFunctionparseError
(err error)
cycletls/errors.go:46
↓ 3 callersMethodsend
(data: string | Buffer, isBinary?: boolean)
src/index.ts:102
↓ 3 callersFunctionwaitForProxy
waitForProxy waits for SOCKS proxy to be ready by attempting to connect
cycletls/tests/integration/proxy_test.go:17
↓ 3 callersFunctionwriteImage
(filename, data)
examples/images.js:7
↓ 2 callersMethodClose
Close closes the WebSocket connection
cycletls/websocket.go:114
↓ 2 callersMethodClose
Close closes the SSE connection
cycletls/sse.go:127
↓ 2 callersMethodCloseIdleConnections
CloseIdleConnections closes connections that have been idle for too long If selectedAddr is provided, only close connections not matching this address
cycletls/roundtripper.go:593
↓ 2 callersFunctionNewCustomApplicationSettingsExtension
NewCustomApplicationSettingsExtension creates a new ALPS extension with preserved ID
cycletls/extensions.go:73
↓ 2 callersFunctionParseJA4RString
ParseJA4RString parses a JA4_r (raw) string into its components JA4_r format: <prefix>_<ciphers>_<extensions>_<signatures> Example: t13d1717h2_002f,00
cycletls/utils.go:581
↓ 2 callersFunctionPrettyStruct
PrettyStruct formats json
cycletls/utils.go:960
↓ 2 callersMethodReceive
Receive receives a message from the WebSocket connection
cycletls/websocket.go:134
↓ 2 callersMethodSSEConnect
SSEConnect establishes an SSE connection
cycletls/client.go:356
↓ 2 callersMethodcleanExit
(message?: string | Error)
src/index.ts:512
↓ 2 callersMethodcreateClient
(resolve: () => void, reject: (reason: string) => void)
src/index.ts:329
↓ 2 callersFunctioncreateNewClient
createNewClient creates a new HTTP client (internal function)
cycletls/client.go:242
↓ 2 callersFunctioncreateTlsVersion
TLSVersion,Ciphers,Extensions,EllipticCurves,EllipticCurvePointFormats
cycletls/utils.go:969
↓ 2 callersMethoddialTLS
(ctx context.Context, network, addr string)
cycletls/roundtripper.go:227
↓ 2 callersFunctiongenMap
(disableGrease bool)
cycletls/utils.go:1010
↓ 2 callersMethodgetDialTLSAddr
(req *http.Request)
cycletls/roundtripper.go:565
↓ 2 callersFunctiongetOrCreateClient
getOrCreateClient retrieves a client from the pool or creates a new one
cycletls/client.go:190
↓ 2 callersFunctiongetTotalRequests
Helper function to get total requests from connection tracker
cycletls/tests/integration/connection_reuse_test.go:282
↓ 2 callersMethodgetTransport
(req *http.Request, addr string)
cycletls/roundtripper.go:186
↓ 2 callersFunctionhashHeaders
(headers http.Header)
cycletls/ja4.go:122
↓ 2 callersFunctionhashUserAgent
(userAgent string)
cycletls/ja4.go:136
↓ 2 callersMethodhttp3Dial
http3Dial establishes a UDP connection for HTTP/3 with proxy support
cycletls/http3.go:404
↓ 2 callersFunctionisTLS13CompatibleCurve
isTLS13CompatibleCurve checks if a curve ID is compatible with TLS 1.3
cycletls/utils.go:397
↓ 2 callersMethodmakeHTTP3Request
makeHTTP3Request performs an HTTP/3 request using the provided HTTP/3 connection
cycletls/roundtripper.go:649
↓ 2 callersFunctionprocessCookies
(response, url, cookieJar)
tests/cookiejar.test.js:71
↓ 2 callersMethodsse
(url: string, options: CycleTLSRequestOptions)
src/index.ts:885
↓ 2 callersMethodws
(url: string, options: CycleTLSRequestOptions)
src/index.ts:874
↓ 1 callersFunctionCreateExtensionFromID
CreateExtensionFromID creates an appropriate extension for the given ID
cycletls/extensions.go:295
↓ 1 callersFunctionDecompressBody
DecompressBody unzips compressed data following axios-style automatic decompression
cycletls/utils.go:74
↓ 1 callersMethodDialContext
ctx.Value will be inspected for optional ContextKeyHeader{} key, with `http.Header` value, which will be added to outgoing request headers, overriding
cycletls/connect.go:147
↓ 1 callersFunctionIsGREASEValue
IsGREASEValue checks if an extension ID is a GREASE value
cycletls/extensions.go:289
↓ 1 callersFunctionJA4RStringToSpec
JA4StringToSpec creates a ClientHelloSpec based on a JA4 string Since JA4 uses hashes, we create a spec with common TLS parameters that would produce
cycletls/utils.go:763
↓ 1 callersFunctionMarshalHeader
MarshalHeader preserves header order while converting to http.Header
cycletls/utils.go:934
↓ 1 callersFunctionNewCustomCompressCertificateExtension
NewCustomCompressCertificateExtension creates a new compress certificate extension
cycletls/extensions.go:147
↓ 1 callersFunctionNewCustomECHExtension
NewCustomECHExtension creates a new ECH extension with preserved ID
cycletls/extensions.go:113
next →1–100 of 362, ranked by callers