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

fetcher: Support the new bazel HTTP headers format #49

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

DolceTriade
Copy link
Contributor

@DolceTriade DolceTriade commented Oct 12, 2024

Bazel now sends qualifiers for each header in the form: http_header:<header>. We need to parse these out.

Further, bazel also supports sending per-URI headers in cases where multiple URIs are sent. We can support this too.

Fixes #48

@tomcoldrick-ct
Copy link
Collaborator

Thanks for the patch! Looks good to me, but golint is unhappy about the format of the comments on the constants for the qualifiers, and wants Http to become HTTP in their names. Once that's fixed up I think this is good to merge.

@DolceTriade
Copy link
Contributor Author

Renamed consts.

Bazel now sends qualifiers for each header in the form:
http_header:<header>. We need to parse these out.

Further, bazel also supports sending per-URI headers in cases where
multiple URIs are sent. We can support this too.
@DolceTriade
Copy link
Contributor Author

Fixed comments. I have probably run golangci-lint first :(

@tomcoldrick-ct tomcoldrick-ct merged commit 8ec38db into buildbarn:master Oct 21, 2024
1 check passed
@DolceTriade DolceTriade deleted the headers branch October 21, 2024 17:24
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.

Support new HTTP Header format
4 participants