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

Expose Metadata.size #11686

Open
He-Pin opened this issue Nov 13, 2024 · 0 comments
Open

Expose Metadata.size #11686

He-Pin opened this issue Nov 13, 2024 · 0 comments

Comments

@He-Pin
Copy link

He-Pin commented Nov 13, 2024

Motivication:

I want to get the metadata's size, but currently I can only get it with metadata#keys#size, access it directly will reduce some overhead.

NOTE:
It was reverted in PR: #3008

My currently usage:

        //https://github.com/grpc/grpc-java/pull/3008
        if (!headersSent && !extraHeaders.keys().isEmpty()) {
            //trailers.merge(extraHeaders);
            sendHeaders(new Metadata());
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant