How bogdanfinn/tls-client-api works
TLS-Client-API is an authenticated HTTP service for forwarding requests through TLS fingerprints, with additional endpoints to retrieve session cookies and destroy one or all sessions. The runtime begins at the application entry point, which installs the API router; the router registers the request and session handlers. The forward handler builds and sends the upstream request, while the other handlers manage session state through the TLS-client library. Edges reflect the shown registrations and calls; the upstream service is inferred from the documented forwarding purpose.
Main entry points: forward-request-handler.go Forward handler · api.go API router · get-cookies-handler.go Cookie handler · main.go Application entry
Components 10
Service runtime
- Application entry
cmd/tls-client-api/main.go - API router
internal/tls-client-api/api/api.go
Request forwarding
- Forward handler
internal/tls-client-api/api/forward-request-handler.go - Cookie and errors
internal/tls-client-api/api/utils.go
Session management
- Cookie handler
internal/tls-client-api/api/get-cookies-handler.go - Free session
internal/tls-client-api/api/free-session-handler.go - Free all sessions
internal/tls-client-api/api/free-all-handler.go - TLS-client library
Other components
- API caller
- Upstream service
Connections 16
- API caller → Application entry: starts service
- Application entry → API router: installs router
cmd/tls-client-api/main.go - API caller → API router: sends API requests
- API router → Forward handler: registers route
internal/tls-client-api/api/api.go - API router → Cookie handler: registers route
internal/tls-client-api/api/api.go - API router → Free session: registers route
internal/tls-client-api/api/api.go - API router → Free all sessions: registers route
internal/tls-client-api/api/api.go - Forward handler → TLS-client library: creates client
internal/tls-client-api/api/forward-request-handler.go - Forward handler → TLS-client library: builds request
internal/tls-client-api/api/forward-request-handler.go - Forward handler → Cookie and errors: converts cookies
internal/tls-client-api/api/forward-request-handler.go - Forward handler → TLS-client library: sends request
internal/tls-client-api/api/forward-request-handler.go - Forward handler → Upstream service: forwards request
- Cookie handler → TLS-client library: gets session client
internal/tls-client-api/api/get-cookies-handler.go - Cookie handler → Cookie and errors: converts cookies
internal/tls-client-api/api/get-cookies-handler.go - Free session → TLS-client library: removes session
internal/tls-client-api/api/free-session-handler.go - Free all sessions → TLS-client library: clears sessions
internal/tls-client-api/api/free-all-handler.go