{"modulePath":"github.com/CompassSecurity/pipeleek","version":"v1.5.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpclient\n\nPackage httpclient provides a centralized HTTP client configuration for pipeleek. It offers a retryable HTTP client with cookie support, custom headers, proxy configuration, TLS settings, and SOCKS proxy support.\n\n## Functions\n\n```go\nfunc GetPipeleekHTTPClient(cookieUrl string, cookies []*http.Cookie, defaultHeaders map[string]string) *resty.Client\n```\nGetPipeleekHTTPClient creates a Resty HTTP client applying the global TLS, proxy, retry, and timeout settings.\n\n```go\nfunc GetPipeleekStandardHTTPClient() *http.Client\n```\nGetPipeleekStandardHTTPClient creates a standard-library HTTP client with Pipeleek's transport settings.\n\n```go\nfunc GetPipeleekTransport() *http.Transport\n```\nGetPipeleekTransport returns a configured \\*http.Transport using the current global client options (TLS, proxy, SOCKS). Use this to inject Pipeleek's transport settings into third-party HTTP client libraries (e.g. Resty, go-github) that manage their own request lifecycle but should still share the same network configuration.\n\n```go\nfunc SetHTTPTimeout(d time.Duration)\n```\nSetHTTPTimeout sets the per-request timeout applied to all Pipeleek-managed HTTP clients. A zero value (the default) means no timeout.\n\n```go\nfunc SetIgnoreProxy(ignore bool)\n```\n\n```go\nfunc SetInsecureSkipVerify(skip bool)\n```\nSetInsecureSkipVerify controls TLS certificate verification for all Pipeleek-managed HTTP clients. Defaults to true (skip verification) to support self-hosted targets with self-signed certificates. Set to false to enforce certificate validation.\n\n```go\nfunc SetProxy(proxyURL string)\n```\nSetProxy sets a proxy URL for all Pipeleek-managed HTTP clients. Accepts both HTTP (\"[http://host:port](http://host:port)\") and SOCKS5 (\"socks5://host:port\") URLs. When non-empty, it takes precedence over the HTTP\\_PROXY environment variable.\n\n","path":"github.com/CompassSecurity/pipeleek/pkg/httpclient","name":"httpclient","synopsis":"Package httpclient provides a centralized HTTP client configuration for pipeleek.","isRedistributable":true}
