Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Danny-Dasilva/CycleTLS
/ functions
Functions
362 in github.com/Danny-Dasilva/CycleTLS
⨍
Functions
362
◇
Types & classes
88
↓ 89 callers
Method
Error
()
cycletls/errors.go:116
↓ 88 callers
Method
Close
Close closes the channels
cycletls/index.go:1363
↓ 80 callers
Method
Do
Do creates a single HTTP request for integration tests
cycletls/index.go:1378
↓ 53 callers
Function
Init
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 callers
Method
json
()
src/index.ts:89
↓ 37 callers
Method
Write
(p []byte)
cycletls/connect.go:314
↓ 36 callers
Method
exit
()
src/index.ts:1096
↓ 36 callers
Function
initCycleTLS
( initOptions: { port?: number; debug?: boolean; timeout?: number; executablePath?: string;
src/index.ts:1099
↓ 35 callers
Method
get
(url: string, options: CycleTLSRequestOptions)
src/index.ts:1078
↓ 28 callers
Method
text
()
src/index.ts:90
↓ 24 callers
Method
String
String returns the string representation of the HTTP/2 fingerprint
cycletls/http2.go:105
↓ 24 callers
Function
withCycleTLS
* 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 callers
Method
close
()
src/index.ts:121
↓ 14 callers
Method
arrayBuffer
()
src/index.ts:91
↓ 14 callers
Method
readU8
()
src/index.ts:1023
↓ 12 callers
Method
request
( url: string, options: CycleTLSRequestOptions, method: "head" | "get" | "post" | "put" | "delete"
src/index.ts:618
↓ 11 callers
Method
Close
()
cycletls/connect.go:318
↓ 11 callers
Function
ConvertHttpHeader
ConvertHttpHeader converts http.Header to fhttp.Header
cycletls/utils.go:906
↓ 10 callers
Function
ConvertFhttpHeader
ConvertFhttpHeader converts fhttp.Header to http.Header
cycletls/utils.go:897
↓ 10 callers
Function
createErrorMessage
(StatusCode int, err error, op string)
cycletls/errors.go:31
↓ 8 callers
Function
QUICStringToSpec
QUICStringToSpec creates a ClientHelloSpec based on a QUIC fingerprint string
cycletls/utils.go:1161
↓ 8 callers
Function
parseUserAgent
ParseUserAgent returns the pseudo header order and user agent string for chrome/firefox
cycletls/utils.go:61
↓ 6 callers
Method
JSONBody
JSONBody parses the response body as JSON
cycletls/index.go:1331
↓ 6 callers
Function
StringToSpec
StringToSpec creates a ClientHelloSpec based on a JA3 string
cycletls/utils.go:230
↓ 6 callers
Function
WithRawBytes
WithRawBytes enables the performance enhancement channel (RespChanV2 chan []byte) Use this option for performance-critical applications that can handl
cycletls/index.go:120
↓ 6 callers
Method
delete
(url: string, options: CycleTLSRequestOptions)
src/index.ts:1081
↓ 6 callers
Function
newRoundTripper
(browser Browser, dialer ...proxy.ContextDialer)
cycletls/roundtripper.go:616
↓ 6 callers
Method
readString
(encoding?: BufferEncoding)
src/index.ts:1059
↓ 6 callers
Function
streamToBuffer
(stream: Readable)
src/index.ts:941
↓ 5 callers
Function
CompareFiles
(filepath1 string, filepath2 string)
cycletls/tests/integration/images_test.go:63
↓ 5 callers
Method
Dial
(network, addr string)
cycletls/connect.go:31
↓ 5 callers
Method
DialContext
(_ context.Context, network, addr string)
cycletls/connect.go:27
↓ 5 callers
Function
GetRequest
(url string, client cycletls.CycleTLS)
cycletls/tests/integration/images_test.go:78
↓ 5 callers
Method
RoundTrip
RoundTrip implements the http.RoundTripper interface
cycletls/http3.go:183
↓ 5 callers
Function
WriteFile
(Body string, Filepath string)
cycletls/tests/integration/images_test.go:43
↓ 5 callers
Method
blob
()
src/index.ts:92
↓ 5 callers
Function
newClientWithReuse
newClientWithReuse creates a new http client with configurable connection reuse
cycletls/client.go:296
↓ 5 callers
Method
readU16
()
src/index.ts:1027
↓ 5 callers
Function
withCycleTLS
( portOrOptions: number | CycleTLSOptions, testFn: (cycleTLS: CycleTLSClient) => Promise<T> )
tests/test-utils.ts:29
↓ 4 callers
Method
Connect
Connect establishes an SSE connection and returns an SSE response
cycletls/sse.go:68
↓ 4 callers
Function
ConvertUtlsConfig
ConvertUtlsConfig converts utls.Config to tls.Config
cycletls/utils.go:915
↓ 4 callers
Function
NewHTTP2Fingerprint
NewHTTP2Fingerprint creates a new HTTP2Fingerprint from string format Format: settings|streamDependency|exclusive|priorityOrder Example: "1:65536,2:0,
cycletls/http2.go:40
↓ 4 callers
Function
NewHTTP3Transport
NewHTTP3Transport creates a new HTTP/3 transport
cycletls/http3.go:51
↓ 4 callers
Function
NewWebSocketClient
NewWebSocketClient creates a new WebSocket client
cycletls/websocket.go:26
↓ 4 callers
Method
NextEvent
NextEvent reads the next event from the SSE stream
cycletls/sse.go:135
↓ 4 callers
Function
StringToTLS13CompatibleSpec
StringToTLS13CompatibleSpec creates a TLS 1.3 compatible ClientHelloSpec by filtering curves
cycletls/utils.go:372
↓ 4 callers
Function
cleanupAll
* Emergency cleanup of all active instances * This is called automatically on process exit
tests/test-utils.ts:136
↓ 4 callers
Function
cleanupAll
* Emergency cleanup of all active instances * This is called automatically on process exit
tests/test-utils.js:122
↓ 4 callers
Function
compareFiles
(file1: string, file2: string)
tests/images.test.ts:64
↓ 4 callers
Function
extractNumber
Helper function to extract number from "key:value" format
cycletls/tests/integration/connection_reuse_test.go:291
↓ 4 callers
Function
getHeadersFromJar
(jar *cookiejar.Jar, url *url.URL)
cycletls/tests/integration/cookiejar_test.go:67
↓ 4 callers
Function
startStrictH2Server
Start a local HTTP/2 server with strict flow control settings.
tests/http2-post-body.test.ts:41
↓ 3 callers
Method
Apply
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 callers
Method
Connect
Connect establishes a WebSocket connection
cycletls/websocket.go:66
↓ 3 callers
Function
ModernChromeSpec
(forceHTTP1 bool)
cycletls/utils.go:135
↓ 3 callers
Function
NewSSEClient
NewSSEClient creates a new SSE client
cycletls/sse.go:46
↓ 3 callers
Method
Queue
Queue queues a request (simplified for integration tests)
cycletls/index.go:1357
↓ 3 callers
Method
cleanup
()
src/index.ts:537
↓ 3 callers
Function
cleanupCycleTLS
* Manual cleanup function for instances created with createSafeCycleTLS * * @param {object} instance - CycleTLS instance to cleanup
tests/test-utils.js:69
↓ 3 callers
Function
createSafeCycleTLS
* 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 callers
Function
doProxyRequestWithRetry
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 callers
Method
getInstance
()
src/index.ts:129
↓ 3 callers
Function
parseError
(err error)
cycletls/errors.go:46
↓ 3 callers
Method
send
(data: string | Buffer, isBinary?: boolean)
src/index.ts:102
↓ 3 callers
Function
waitForProxy
waitForProxy waits for SOCKS proxy to be ready by attempting to connect
cycletls/tests/integration/proxy_test.go:17
↓ 3 callers
Function
writeImage
(filename, data)
examples/images.js:7
↓ 2 callers
Method
Close
Close closes the WebSocket connection
cycletls/websocket.go:114
↓ 2 callers
Method
Close
Close closes the SSE connection
cycletls/sse.go:127
↓ 2 callers
Method
CloseIdleConnections
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 callers
Function
NewCustomApplicationSettingsExtension
NewCustomApplicationSettingsExtension creates a new ALPS extension with preserved ID
cycletls/extensions.go:73
↓ 2 callers
Function
ParseJA4RString
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 callers
Function
PrettyStruct
PrettyStruct formats json
cycletls/utils.go:960
↓ 2 callers
Method
Receive
Receive receives a message from the WebSocket connection
cycletls/websocket.go:134
↓ 2 callers
Method
SSEConnect
SSEConnect establishes an SSE connection
cycletls/client.go:356
↓ 2 callers
Method
cleanExit
(message?: string | Error)
src/index.ts:512
↓ 2 callers
Method
createClient
(resolve: () => void, reject: (reason: string) => void)
src/index.ts:329
↓ 2 callers
Function
createNewClient
createNewClient creates a new HTTP client (internal function)
cycletls/client.go:242
↓ 2 callers
Function
createTlsVersion
TLSVersion,Ciphers,Extensions,EllipticCurves,EllipticCurvePointFormats
cycletls/utils.go:969
↓ 2 callers
Method
dialTLS
(ctx context.Context, network, addr string)
cycletls/roundtripper.go:227
↓ 2 callers
Function
genMap
(disableGrease bool)
cycletls/utils.go:1010
↓ 2 callers
Method
getDialTLSAddr
(req *http.Request)
cycletls/roundtripper.go:565
↓ 2 callers
Function
getOrCreateClient
getOrCreateClient retrieves a client from the pool or creates a new one
cycletls/client.go:190
↓ 2 callers
Function
getTotalRequests
Helper function to get total requests from connection tracker
cycletls/tests/integration/connection_reuse_test.go:282
↓ 2 callers
Method
getTransport
(req *http.Request, addr string)
cycletls/roundtripper.go:186
↓ 2 callers
Function
hashHeaders
(headers http.Header)
cycletls/ja4.go:122
↓ 2 callers
Function
hashUserAgent
(userAgent string)
cycletls/ja4.go:136
↓ 2 callers
Method
http3Dial
http3Dial establishes a UDP connection for HTTP/3 with proxy support
cycletls/http3.go:404
↓ 2 callers
Function
isTLS13CompatibleCurve
isTLS13CompatibleCurve checks if a curve ID is compatible with TLS 1.3
cycletls/utils.go:397
↓ 2 callers
Method
makeHTTP3Request
makeHTTP3Request performs an HTTP/3 request using the provided HTTP/3 connection
cycletls/roundtripper.go:649
↓ 2 callers
Function
processCookies
(response, url, cookieJar)
tests/cookiejar.test.js:71
↓ 2 callers
Method
sse
(url: string, options: CycleTLSRequestOptions)
src/index.ts:885
↓ 2 callers
Method
ws
(url: string, options: CycleTLSRequestOptions)
src/index.ts:874
↓ 1 callers
Function
CreateExtensionFromID
CreateExtensionFromID creates an appropriate extension for the given ID
cycletls/extensions.go:295
↓ 1 callers
Function
DecompressBody
DecompressBody unzips compressed data following axios-style automatic decompression
cycletls/utils.go:74
↓ 1 callers
Method
DialContext
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 callers
Function
IsGREASEValue
IsGREASEValue checks if an extension ID is a GREASE value
cycletls/extensions.go:289
↓ 1 callers
Function
JA4RStringToSpec
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 callers
Function
MarshalHeader
MarshalHeader preserves header order while converting to http.Header
cycletls/utils.go:934
↓ 1 callers
Function
NewCustomCompressCertificateExtension
NewCustomCompressCertificateExtension creates a new compress certificate extension
cycletls/extensions.go:147
↓ 1 callers
Function
NewCustomECHExtension
NewCustomECHExtension creates a new ECH extension with preserved ID
cycletls/extensions.go:113
next →
1–100 of 362, ranked by callers