#include <grpc/support/port_platform.h>
#include "src/core/lib/transport/http_connect_handshaker.h"
#include <limits.h>
#include <string.h>
#include <memory>
#include <string>
#include "absl/base/thread_annotations.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include <grpc/slice.h>
#include <grpc/slice_buffer.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/config/core_configuration.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/lib/http/format_request.h"
#include "src/core/lib/http/parser.h"
#include "src/core/lib/iomgr/closure.h"
#include "src/core/lib/iomgr/endpoint.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/exec_ctx.h"
#include "src/core/lib/iomgr/iomgr_fwd.h"
#include "src/core/lib/iomgr/tcp_server.h"
#include "src/core/lib/transport/handshaker.h"
#include "src/core/lib/transport/handshaker_factory.h"
#include "src/core/lib/transport/handshaker_registry.h"
namespace grpc_core {
namespace {
class HttpConnectHandshaker : public Handshaker { … };
HttpConnectHandshaker::~HttpConnectHandshaker() { … }
void HttpConnectHandshaker::CleanupArgsForFailureLocked() { … }
void HttpConnectHandshaker::HandshakeFailedLocked(grpc_error_handle error) { … }
void HttpConnectHandshaker::OnWriteDoneScheduler(void* arg,
grpc_error_handle error) { … }
void HttpConnectHandshaker::OnWriteDone(void* arg, grpc_error_handle error) { … }
void HttpConnectHandshaker::OnReadDoneScheduler(void* arg,
grpc_error_handle error) { … }
void HttpConnectHandshaker::OnReadDone(void* arg, grpc_error_handle error) { … }
void HttpConnectHandshaker::Shutdown(grpc_error_handle why) { … }
void HttpConnectHandshaker::DoHandshake(grpc_tcp_server_acceptor* ,
grpc_closure* on_handshake_done,
HandshakerArgs* args) { … }
HttpConnectHandshaker::HttpConnectHandshaker() { … }
class HttpConnectHandshakerFactory : public HandshakerFactory { … };
}
void RegisterHttpConnectHandshaker(CoreConfiguration::Builder* builder) { … }
}