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

Remove connection-specific headers from HTTP/2 message. #7

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

luborco
Copy link
Contributor

@luborco luborco commented Aug 12, 2024

No description provided.

@luborco luborco self-assigned this Aug 12, 2024
pkg/transport/transport.go Outdated Show resolved Hide resolved
pkg/service/transformer/transformer.go Outdated Show resolved Hide resolved
pkg/service/transformer/transformer.go Outdated Show resolved Hide resolved

return metadata.NewOutgoingContext(request.Context(), grpcMetadata)
}

func SetRESTHeaders(headers http.Header, gRPCheader metadata.MD, gRPCTrailer metadata.MD) {
func setHeader(headers http.Header, protoMajor int, name string, values []string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional: Move this function to the bottom of the file.

It is not required in Go to define a function before this function is used. Best practice for more readable code is to define exported functions first and then un-exported functions. Files are meant to be read from top to bottom, not the opposite way. Therefore the more important functions (exproted) should be defined before less important functions.

@luborco luborco merged commit a42a3e9 into main Aug 13, 2024
4 checks passed
@luborco luborco deleted the feature/remove-connections-headers-for-http2 branch August 13, 2024 11:52
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.

3 participants