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: Added support for custom request headers - as defined in RFC 2616 - passed by the InfluxDBClient to its (internal) RestClient. #490

Closed
wants to merge 3 commits into from

Conversation

kdrapel
Copy link

@kdrapel kdrapel commented Mar 20, 2023

Proposed Changes

Added support for custom request headers - as defined in RFC 2616 - passed by the InfluxDBClient to its (internal) RestClient. This is useful for example if you need to force specific security-related headers if your InfluxDB instance is behind an API management component.

Checklist

  • A test has been added if appropriate
  • dotnet test completes successfully (don't have the test infrastructure with a local InfluxDB on 8086/9999)
  • Commit messages are conventional
  • Sign CLA (if not already signed)

To give more insight about this change, the reason is that we had to pass our InfluxDB trafic through an Azure APIM. This requires additional headers (for subscription) that were impossible to inject with the original version.

@kdrapel kdrapel changed the title Added support for custom request headers - as defined in RFC 2616 - passed by the InfluxDBClient to its (internal) RestClient. feat: Added support for custom request headers - as defined in RFC 2616 - passed by the InfluxDBClient to its (internal) RestClient. Mar 27, 2023
@kdrapel
Copy link
Author

kdrapel commented Mar 27, 2023

@powersj, title fixed, please run pipeline again? thx

@powersj powersj closed this Mar 27, 2023
@powersj powersj reopened this Mar 27, 2023
@powersj powersj closed this Mar 27, 2023
@powersj powersj reopened this Mar 27, 2023
@powersj
Copy link
Contributor

powersj commented Mar 27, 2023

@kdrapel sorry for the close/opens, but trying to get circleci to launch tests.

Do you have docker running locally? if so you can use the ./Scripts/influxdb-restart.sh script to verify it works.

@kdrapel
Copy link
Author

kdrapel commented Mar 28, 2023

Don't have docker right under my hand to test that

@bednar
Copy link
Contributor

bednar commented Nov 2, 2023

@kdrapel, can you please rebase your source with master branch?

…t-csharp

# Conflicts:
#	Client.Test/InfluxDbClientFactoryTest.cs
#	Client/InfluxDBClientOptions.cs
#	Client/Internal/ApiClient.cs
@bednar
Copy link
Contributor

bednar commented Nov 2, 2023

@kdrapel can you please satisfy the compilation error from CI:

image

@kdrapel
Copy link
Author

kdrapel commented Nov 2, 2023

I think my changes are incompatible with the newest RestSharp version. I discard this pull request and will maybe work on a new version soon.

@kdrapel kdrapel closed this Nov 2, 2023
@bednar bednar added the wontfix This will not be worked on label Nov 2, 2023
@bednar bednar added this to the 4.14.0 milestone Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants