updated SDK

This commit is contained in:
Sriramajeyam Sugumaran
2023-11-16 13:07:41 +00:00
parent 17d71f6d9e
commit 07d41ac825
6 changed files with 87 additions and 49 deletions

View File

@@ -1,6 +1,7 @@
package httpclient
import (
"context"
"crypto/tls"
"net/http"
"time"
@@ -13,8 +14,8 @@ import (
)
// New creates new HTTP client.
func New(dsInfo *backend.DataSourceInstanceSettings, timeout time.Duration) (*http.Client, error) {
clientOptions, err := dsInfo.HTTPClientOptions()
func New(ctx context.Context, dsInfo *backend.DataSourceInstanceSettings, timeout time.Duration) (*http.Client, error) {
clientOptions, err := dsInfo.HTTPClientOptions(ctx)
if err != nil {
return nil, err
}