Blame modules/http2/h2_request.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef __mod_h2__h2_request__
Packit 90a5c9
#define __mod_h2__h2_request__
Packit 90a5c9
Packit 90a5c9
#include "h2.h"
Packit 90a5c9
Packit 90a5c9
apr_status_t h2_request_rcreate(h2_request **preq, apr_pool_t *pool, 
Packit 90a5c9
                                request_rec *r);
Packit 90a5c9
Packit 90a5c9
apr_status_t h2_request_add_header(h2_request *req, apr_pool_t *pool,
Packit 90a5c9
                                   const char *name, size_t nlen,
Packit 90a5c9
                                   const char *value, size_t vlen);
Packit 90a5c9
Packit 90a5c9
apr_status_t h2_request_add_trailer(h2_request *req, apr_pool_t *pool,
Packit 90a5c9
                                    const char *name, size_t nlen,
Packit 90a5c9
                                    const char *value, size_t vlen);
Packit 90a5c9
Packit 90a5c9
apr_status_t h2_request_end_headers(h2_request *req, apr_pool_t *pool, int eos, size_t raw_bytes);
Packit 90a5c9
Packit 90a5c9
h2_request *h2_request_clone(apr_pool_t *p, const h2_request *src);
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * Create a request_rec representing the h2_request to be
Packit 90a5c9
 * processed on the given connection.
Packit 90a5c9
 *
Packit 90a5c9
 * @param req the h2 request to process
Packit 90a5c9
 * @param conn the connection to process the request on
Packit 90a5c9
 * @return the request_rec representing the request
Packit 90a5c9
 */
Packit 90a5c9
request_rec *h2_request_create_rec(const h2_request *req, conn_rec *conn);
Packit 90a5c9
Packit 90a5c9
Packit 90a5c9
#endif /* defined(__mod_h2__h2_request__) */