()
| 11 | } |
| 12 | |
| 13 | func NewBasicClient() tls_client.HttpClient { |
| 14 | jar := tls_client.NewCookieJar() |
| 15 | options := []tls_client.HttpClientOption{ |
| 16 | tls_client.WithTimeoutSeconds(30), |
| 17 | tls_client.WithClientProfile(profiles.Okhttp4Android13), |
| 18 | tls_client.WithNotFollowRedirects(), |
| 19 | tls_client.WithCookieJar(jar), // create cookieJar instance and pass it as argument |
| 20 | } |
| 21 | client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...) |
| 22 | if err != nil { |
| 23 | slog.Error("err while init tls client", err) |
| 24 | } |
| 25 | return client |
| 26 | } |
nothing calls this directly
no outgoing calls
no test coverage detected