The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

Move compression related metadata to the new system (#28223) * Eliminate most of grpc_message metadata handling * Eliminate most of host metadata handling * Remove more callouts without fixing code * fiiixes * typo * Automated change: Fix sanity tests * try-shrink * Automated change: Fix sanity tests * size tweaks * less tricks * deunique * commonize * commonize * Automated change: Fix sanity tests * size tuning, fixes * Automated change: Fix sanity tests * fix * size tuning, fixes * remove constexpr * fix * reuse code * fix * tweak code * more tweaks * tell no lies * fixes * fixes * Automated change: Fix sanity tests * fix * fix * fix * fix * fix? * fix binder * fix * fix * fixes * Automated change: Fix sanity tests * fix * initial refactoring * optimize status encoding * Automated change: Fix sanity tests * Automated change: Fix sanity tests * content-type * Automated change: Fix sanity tests * clang-format * fix * Move colon prefixed metadata * Automated change: Fix sanity tests * Automated change: Fix sanity tests * try to fix windows failure * try and scale sizes better * ambiguity fix? * wip metadatavalueasslice * Fix status code for resource exhaustion * Revert "Revert "Move a bunch of slice typed metadata to new system (#28107)" (#28208)" This reverts commit 771758706396560d6eb91ef6058cdf0e1e65341e. * fix test * Automated change: Fix sanity tests * Automated change: Fix sanity tests * slice helper * x * noinline * try and scale sizes better * Automated change: Fix sanity tests * fixes * fix * fix * fixes * fix build * fix overflow * progress * Automated change: Fix sanity tests * fix * initial work * progress * fix * fix * Automated change: Fix sanity tests * progress * fix * fix * fix * Automated change: Fix sanity tests * fix * compressor for path/authority * Automated change: Fix sanity tests * Automated change: Fix sanity tests * legalize * legalize * status-enc * fmt * fix * fix * fix * fix * fix/opt * fix * fix * fix * fix * Automated change: Fix sanity tests * fix * comment * fmt * remove arg * Automated change: Fix sanity tests * remove name * Automated change: Fix sanity tests * add specialized encoders for compression metadata * review feedback * fix * missoing files * Small improvement in memory usage and performance * Automated change: Fix sanity tests * Automated change: Fix sanity tests * Fix caching * Automated change: Fix sanity tests * fix crash in alts * default everything * Automated change: Fix sanity tests * review feedback * fixes * fixes * fixes * Automated change: Fix sanity tests * speedup * fix * fix * fixes * fixes * fixes * Automated change: Fix sanity tests * fix * remove debug code Co-authored-by: ctiller <ctiller@users.noreply.github.com>
3 years ago
// Copyright 2021 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef GRPC_TEST_CORE_COMPRESSION_ARGS_UTILS_H_H
#define GRPC_TEST_CORE_COMPRESSION_ARGS_UTILS_H_H
#include "src/core/lib/channel/channel_args.h"
// TODO(ctiller): when we do the channel args migration, just delete this.
const grpc_channel_args*
grpc_channel_args_set_channel_default_compression_algorithm(
const grpc_channel_args* a, grpc_compression_algorithm algorithm);
const grpc_channel_args* grpc_channel_args_compression_algorithm_set_state(
const grpc_channel_args** a, grpc_compression_algorithm algorithm,
int state);
const grpc_channel_args*
grpc_channel_args_set_channel_default_compression_algorithm(
const grpc_channel_args* a, grpc_compression_algorithm algorithm);
#endif