2
* Copyright 2004 Apache Software Foundation
4
* Licensed under the Apache License, Version 2.0 (the "License"); you
5
* may not use this file except in compliance with the License. You
6
* may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
* implied. See the License for the specific language governing
14
* permissions and limitations under the License.
16
* Originally developed by Gregory Trubetskoy.
21
* $Id: requestobject.h,v 1.16 2004/02/16 19:47:28 grisha Exp $
25
#ifndef Mp_REQUESTOBJECT_H
26
#define Mp_REQUESTOBJECT_H
31
typedef struct requestobject {
34
request_rec * request_rec;
35
PyObject * connection;
40
PyObject * headers_in;
41
PyObject * headers_out;
42
PyObject * err_headers_out;
43
PyObject * subprocess_env;
46
char * extension; /* for | .ext syntax */
50
char * rbuff; /* read bufer */
51
int rbuff_len; /* read buffer size */
52
int rbuff_pos; /* position into the buffer */
55
extern DL_IMPORT(PyTypeObject) MpRequest_Type;
57
#define MpRequest_Check(op) ((op)->ob_type == &MpRequest_Type)
59
extern DL_IMPORT(PyObject *) MpRequest_FromRequest Py_PROTO((request_rec *r));
64
#endif /* !Mp_REQUESTOBJECT_H */