Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ability to provide dynamic query parameters #44

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

keelerm84
Copy link
Member

No description provided.

@keelerm84 keelerm84 requested a review from a team as a code owner December 18, 2024 14:38
stream.go Outdated
@@ -231,6 +237,9 @@ func (stream *Stream) connect() (io.ReadCloser, error) {
stream.req.Header.Set("Last-Event-ID", stream.lastEventID)
}
req := *stream.req
if stream.queryParamsFunc != nil {
req.URL.RawQuery = (*stream.queryParamsFunc)().Encode()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a merge? Or do we want replacement behavior?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we need replacement to be able to remove a parameter.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated so that the previously defined query parameters are sent along on subsequent requests.

@keelerm84 keelerm84 merged commit efc5d86 into main Dec 19, 2024
10 checks passed
@keelerm84 keelerm84 deleted the mk/sdk-1014/dynamic-query-parameters branch December 19, 2024 16:41
keelerm84 pushed a commit that referenced this pull request Dec 19, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.8.0](v1.7.1...v1.8.0)
(2024-12-19)


### Features

* Add ability to provide dynamic query parameters
([#44](#44))
([efc5d86](efc5d86))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants