Send custom HTTP headers when publishing
See original GitHub issueHello,
When publishing to a private repository, it’s necessary for us to send custom HTTP headers when doing this. These headers contain, for example, authentication tokens.
I know that Maven uses a ~/.m2/settings.xml
file for this where custom httpHeaders can be configured per server/repository. I haven’t found an analogous functionality in SBT to do this aside from basic authentication.
Is it possible to do this at the moment with SBT? If not, please consider this a feature request. 👍
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:39 (4 by maintainers)
Top Results From Across the Web
Requests with custom HTTP headers - Progress Documentation
Custom HTTP headers can be used to filter requests or specify a value for the Accept header. Some endpoints employ custom HTTP headers...
Read more >How To Send Custom HTTP Headers While Sending HTTP ...
Goal. Requirement is to send custom HTTP headers when sending data to external application with the EAI HTTP Transport.
Read more >Back to Basics: Custom HTTP Response Header Manipulation ...
The simplest way you can add custom headers to every request response is by using a generic Middleware handler which uses app.Use() ....
Read more >Publishing HTTP Headers to Monitoring Response with ...
The HttpStackHeaders.cs script allows showing the request, response, or both headers in the response, in the Online Report. Custom Script File ...
Read more >Add custom HTTP headers · Cloudflare Pages docs
Cloudflare provides HTTP header customization for Pages projects by adding a _headers file to your project. Refer to the documentation for more ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@christianri if it helps, here is what I threw together https://gitlab.com/SLUDG/gitlab-sbt
I’ve never written an SBT plugin before, so I’m sure it’s far from perfect, but I got it to work!
Edit: I’ve moved the repo over to https://github.com/k8ty-app/sbt-publish
Hi @gilandose
Thank you so much for all the explanations. To sum this up:
To upload an artifact -
To download an artifact (dependency)