mirror of https://github.com/grpc/grpc.git
[build] Move unnecessary absl includes from metadata_batch.h (#29523)
* Move unnecessary absl includes from metadata_batch.h metadata_batch.h is a widely used header, and so any includes it takes that are for its internal use can negatively impact our build times. * missing file * build * review feedbackpull/29575/head
parent
717732c044
commit
f7f0dcf2cb
18 changed files with 82 additions and 10 deletions
@ -0,0 +1,29 @@ |
||||
// 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.
|
||||
|
||||
#include <grpc/support/port_platform.h> |
||||
|
||||
#include "src/core/lib/transport/metadata_batch.h" |
||||
|
||||
#include "absl/strings/escaping.h" |
||||
#include "absl/strings/str_join.h" |
||||
|
||||
namespace grpc_core { |
||||
namespace metadata_detail { |
||||
void DebugStringBuilder::Add(absl::string_view key, absl::string_view value) { |
||||
if (!out_.empty()) out_.append(", "); |
||||
absl::StrAppend(&out_, absl::CEscape(key), ": ", absl::CEscape(value)); |
||||
} |
||||
} // namespace metadata_detail
|
||||
} // namespace grpc_core
|
Loading…
Reference in new issue