chromium/third_party/grpc/src/src/core/lib/http/parser.cc

//
//
// Copyright 2015 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/http/parser.h"

#include <string.h>

#include <algorithm>

#include "absl/status/status.h"

#include <grpc/support/alloc.h>
#include <grpc/support/log.h>

grpc_core::TraceFlag grpc_http1_trace(false, "http1");

static char* buf2str(void* buffer, size_t length) {}

static grpc_error_handle handle_response_line(grpc_http_parser* parser) {}

static grpc_error_handle handle_request_line(grpc_http_parser* parser) {}

static grpc_error_handle handle_first_line(grpc_http_parser* parser) {}

static grpc_error_handle add_header(grpc_http_parser* parser) {}

static grpc_error_handle finish_line(grpc_http_parser* parser,
                                     bool* found_body_start) {}

static grpc_error_handle addbyte_body(grpc_http_parser* parser, uint8_t byte) {}

static bool check_line(grpc_http_parser* parser) {}

static grpc_error_handle addbyte(grpc_http_parser* parser, uint8_t byte,
                                 bool* found_body_start) {}

void grpc_http_parser_init(grpc_http_parser* parser, grpc_http_type type,
                           void* request_or_response) {}

void grpc_http_parser_destroy(grpc_http_parser* /*parser*/) {}

void grpc_http_request_destroy(grpc_http_request* request) {}

void grpc_http_response_destroy(grpc_http_response* response) {}

grpc_error_handle grpc_http_parser_parse(grpc_http_parser* parser,
                                         const grpc_slice& slice,
                                         size_t* start_of_body) {}

grpc_error_handle grpc_http_parser_eof(grpc_http_parser* parser) {}