Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/docs/clients/server-side.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1561,6 +1561,18 @@ client := flagsmith.NewClient(os.Getenv("FLAGSMITH_SERVER_SIDE_ENVIRONMENT_KEY")
c.client.SetProxy(proxyURL)
}
}

// WithRestyClient allows you to provide a custom resty client for making HTTP requests.
// This gives you more control over the HTTP client configuration.
// Only one of resty or HTTP custom client can be provided
// Can not be used simultaneously with Client related options (WithRequestTimeout, WithRetries, WithCustomHeaders, WithProxy)
flagsmith.WithRestyClient(restyClient)

// WithHTTPClient allows you to provide a custom http client for making HTTP requests.
// This is useful when you need to customize the underlying HTTP client behavior.
// Only one of resty or HTTP custom client can be provided
// Can not be used simultaneously with Client related options (WithRequestTimeout, WithRetries, WithCustomHeaders, WithProxy)
flagsmith.WithHTTPClient(httpClient)
)
```

Expand Down