8215
8182
return __pyx_r;
8218
/* "/home/denis/work/gevent/gevent/evhttp.pxi":118
8219
* cdef public object default_response_headers
8221
* def __init__(self, size_t _obj, object default_response_headers): # <<<<<<<<<<<<<<
8222
* self.__obj = <evhttp_request*>_obj
8223
* self.default_response_headers = default_response_headers
8226
static int __pyx_pf_6gevent_4core_12http_request___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8227
static int __pyx_pf_6gevent_4core_12http_request___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8228
size_t __pyx_v__obj;
8229
PyObject *__pyx_v_default_response_headers = 0;
8185
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":108
8188
* def write(self, bytes data): # <<<<<<<<<<<<<<
8189
* cdef int result = evbuffer_add(self.__obj, data, len(data))
8193
static PyObject *__pyx_pf_6gevent_4core_6buffer_9write(PyObject *__pyx_v_self, PyObject *__pyx_v_data); /*proto*/
8194
static PyObject *__pyx_pf_6gevent_4core_6buffer_9write(PyObject *__pyx_v_self, PyObject *__pyx_v_data) {
8196
PyObject *__pyx_r = NULL;
8197
struct evbuffer *__pyx_t_1;
8199
PyObject *__pyx_t_3 = NULL;
8200
Py_ssize_t __pyx_t_4;
8202
PyObject *__pyx_t_6 = NULL;
8203
__Pyx_RefNannySetupContext("write");
8204
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), (&PyBytes_Type), 1, "data", 1))) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8206
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":109
8208
* def write(self, bytes data):
8209
* cdef int result = evbuffer_add(self.__obj, data, len(data)) # <<<<<<<<<<<<<<
8211
* raise IOError("evbuffer_add() returned %s" % result)
8213
__pyx_t_1 = ((struct __pyx_obj_6gevent_4core_buffer *)__pyx_v_self)->__pyx___obj;
8214
__pyx_t_2 = PyBytes_AsString(((PyObject *)__pyx_v_data)); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8215
__pyx_t_3 = ((PyObject *)__pyx_v_data);
8216
__Pyx_INCREF(__pyx_t_3);
8217
if (unlikely(__pyx_t_3 == Py_None)) {
8218
PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()"); {__pyx_filename = __pyx_f[2]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8220
__pyx_t_4 = PyBytes_GET_SIZE(__pyx_t_3);
8221
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8222
__pyx_v_result = evbuffer_add(__pyx_t_1, __pyx_t_2, __pyx_t_4);
8224
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":110
8225
* def write(self, bytes data):
8226
* cdef int result = evbuffer_add(self.__obj, data, len(data))
8227
* if result < 0: # <<<<<<<<<<<<<<
8228
* raise IOError("evbuffer_add() returned %s" % result)
8231
__pyx_t_5 = (__pyx_v_result < 0);
8234
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":111
8235
* cdef int result = evbuffer_add(self.__obj, data, len(data))
8237
* raise IOError("evbuffer_add() returned %s" % result) # <<<<<<<<<<<<<<
8240
__pyx_t_3 = PyInt_FromLong(__pyx_v_result); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8241
__Pyx_GOTREF(__pyx_t_3);
8242
__pyx_t_6 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_21), __pyx_t_3); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8243
__Pyx_GOTREF(((PyObject *)__pyx_t_6));
8244
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
8245
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8246
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
8247
PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_t_6));
8248
__Pyx_GIVEREF(((PyObject *)__pyx_t_6));
8250
__pyx_t_6 = PyObject_Call(__pyx_builtin_IOError, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8251
__Pyx_GOTREF(__pyx_t_6);
8252
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
8253
__Pyx_Raise(__pyx_t_6, 0, 0);
8254
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
8255
{__pyx_filename = __pyx_f[2]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8260
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":112
8262
* raise IOError("evbuffer_add() returned %s" % result)
8263
* return result # <<<<<<<<<<<<<<
8265
__Pyx_XDECREF(__pyx_r);
8266
__pyx_t_6 = PyInt_FromLong(__pyx_v_result); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
8267
__Pyx_GOTREF(__pyx_t_6);
8268
__pyx_r = __pyx_t_6;
8272
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
8275
__Pyx_XDECREF(__pyx_t_3);
8276
__Pyx_XDECREF(__pyx_t_6);
8277
__Pyx_AddTraceback("gevent.core.buffer.write");
8280
__Pyx_XGIVEREF(__pyx_r);
8281
__Pyx_RefNannyFinishContext();
8285
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":155
8286
* cdef public object _output_buffer
8288
* def __init__(self, size_t obj): # <<<<<<<<<<<<<<
8289
* self.__obj = <evhttp_request *>obj
8293
static int __pyx_pf_6gevent_4core_17http_request_base___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
8294
static int __pyx_pf_6gevent_4core_17http_request_base___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
8231
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s___obj,&__pyx_n_s_21,0};
8297
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,0};
8232
8298
__Pyx_RefNannySetupContext("__init__");
8233
8299
if (unlikely(__pyx_kwds)) {
8234
8300
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
8235
PyObject* values[2] = {0,0};
8301
PyObject* values[1] = {0};
8236
8302
switch (PyTuple_GET_SIZE(__pyx_args)) {
8237
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
8238
8303
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
8240
8305
default: goto __pyx_L5_argtuple_error;
8242
8307
switch (PyTuple_GET_SIZE(__pyx_args)) {
8244
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___obj);
8309
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
8245
8310
if (likely(values[0])) kw_args--;
8246
8311
else goto __pyx_L5_argtuple_error;
8248
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_21);
8249
if (likely(values[1])) kw_args--;
8251
__Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8254
8313
if (unlikely(kw_args > 0)) {
8255
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8314
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8257
__pyx_v__obj = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v__obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8258
__pyx_v_default_response_headers = values[1];
8259
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
8316
__pyx_v_obj = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8317
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
8260
8318
goto __pyx_L5_argtuple_error;
8262
__pyx_v__obj = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v__obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8263
__pyx_v_default_response_headers = PyTuple_GET_ITEM(__pyx_args, 1);
8320
__pyx_v_obj = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8265
8322
goto __pyx_L4_argument_unpacking_done;
8266
8323
__pyx_L5_argtuple_error:;
8267
__Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8324
__Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
8268
8325
__pyx_L3_error:;
8269
__Pyx_AddTraceback("gevent.core.http_request.__init__");
8326
__Pyx_AddTraceback("gevent.core.http_request_base.__init__");
8327
__Pyx_RefNannyFinishContext();
8271
8329
__pyx_L4_argument_unpacking_done:;
8273
/* "/home/denis/work/gevent/gevent/evhttp.pxi":119
8275
* def __init__(self, size_t _obj, object default_response_headers):
8276
* self.__obj = <evhttp_request*>_obj # <<<<<<<<<<<<<<
8277
* self.default_response_headers = default_response_headers
8280
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj = ((struct evhttp_request *)__pyx_v__obj);
8282
/* "/home/denis/work/gevent/gevent/evhttp.pxi":120
8283
* def __init__(self, size_t _obj, object default_response_headers):
8284
* self.__obj = <evhttp_request*>_obj
8285
* self.default_response_headers = default_response_headers # <<<<<<<<<<<<<<
8287
* def __dealloc__(self):
8289
__Pyx_INCREF(__pyx_v_default_response_headers);
8290
__Pyx_GIVEREF(__pyx_v_default_response_headers);
8291
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
8292
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
8293
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers = __pyx_v_default_response_headers;
8331
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":156
8333
* def __init__(self, size_t obj):
8334
* self.__obj = <evhttp_request *>obj # <<<<<<<<<<<<<<
8338
((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj = ((struct evhttp_request *)__pyx_v_obj);
8296
8341
__Pyx_RefNannyFinishContext();
8297
8342
return __pyx_r;
8300
/* "/home/denis/work/gevent/gevent/evhttp.pxi":122
8301
* self.default_response_headers = default_response_headers
8303
* def __dealloc__(self): # <<<<<<<<<<<<<<
8304
* cdef evhttp_request* obj = self.__obj
8308
static void __pyx_pf_6gevent_4core_12http_request___dealloc__(PyObject *__pyx_v_self); /*proto*/
8309
static void __pyx_pf_6gevent_4core_12http_request___dealloc__(PyObject *__pyx_v_self) {
8310
struct evhttp_request *__pyx_v_obj;
8312
__Pyx_RefNannySetupContext("__dealloc__");
8313
__Pyx_INCREF((PyObject *)__pyx_v_self);
8315
/* "/home/denis/work/gevent/gevent/evhttp.pxi":123
8317
* def __dealloc__(self):
8318
* cdef evhttp_request* obj = self.__obj # <<<<<<<<<<<<<<
8322
__pyx_v_obj = ((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj;
8324
/* "/home/denis/work/gevent/gevent/evhttp.pxi":124
8325
* def __dealloc__(self):
8326
* cdef evhttp_request* obj = self.__obj
8327
* if obj != NULL: # <<<<<<<<<<<<<<
8329
* report_internal_error(obj)
8331
__pyx_t_1 = (__pyx_v_obj != NULL);
8334
/* "/home/denis/work/gevent/gevent/evhttp.pxi":125
8335
* cdef evhttp_request* obj = self.__obj
8337
* self.__obj = NULL # <<<<<<<<<<<<<<
8338
* report_internal_error(obj)
8341
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj = NULL;
8343
/* "/home/denis/work/gevent/gevent/evhttp.pxi":126
8346
* report_internal_error(obj) # <<<<<<<<<<<<<<
8350
__pyx_f_6gevent_4core_report_internal_error(__pyx_v_obj);
8355
__Pyx_DECREF((PyObject *)__pyx_v_self);
8356
__Pyx_RefNannyFinishContext();
8359
/* "/home/denis/work/gevent/gevent/evhttp.pxi":130
8345
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":160
8360
8346
* property _obj:
8362
8348
* def __get__(self): # <<<<<<<<<<<<<<
10682
10652
* raise HttpRequestDeleted
10684
10654
__Pyx_XDECREF(__pyx_r);
10685
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer);
10686
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer;
10655
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
10656
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer;
10687
10657
goto __pyx_L0;
10688
10658
goto __pyx_L5;
10692
/* "/home/denis/work/gevent/gevent/evhttp.pxi":309
10662
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":341
10693
10663
* if self._output_buffer is not None:
10694
10664
* return self._output_buffer
10695
10665
* if not self.__obj: # <<<<<<<<<<<<<<
10696
10666
* raise HttpRequestDeleted
10697
10667
* self._output_buffer = buffer(<size_t>self.__obj.output_buffer)
10699
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
10669
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
10700
10670
if (__pyx_t_1) {
10702
/* "/home/denis/work/gevent/gevent/evhttp.pxi":310
10672
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":342
10703
10673
* return self._output_buffer
10704
10674
* if not self.__obj:
10705
10675
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
10706
10676
* self._output_buffer = buffer(<size_t>self.__obj.output_buffer)
10707
10677
* return self._output_buffer
10709
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10679
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10710
10680
__Pyx_GOTREF(__pyx_t_2);
10711
10681
__Pyx_Raise(__pyx_t_2, 0, 0);
10712
10682
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10713
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10683
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 342; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10714
10684
goto __pyx_L6;
10718
/* "/home/denis/work/gevent/gevent/evhttp.pxi":311
10688
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":343
10719
10689
* if not self.__obj:
10720
10690
* raise HttpRequestDeleted
10721
10691
* self._output_buffer = buffer(<size_t>self.__obj.output_buffer) # <<<<<<<<<<<<<<
10722
10692
* return self._output_buffer
10725
__pyx_t_2 = __Pyx_PyInt_FromSize_t(((size_t)((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->output_buffer)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10695
__pyx_t_2 = __Pyx_PyInt_FromSize_t(((size_t)((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->output_buffer)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10726
10696
__Pyx_GOTREF(__pyx_t_2);
10727
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10728
__Pyx_GOTREF(__pyx_t_3);
10697
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10698
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
10729
10699
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
10730
10700
__Pyx_GIVEREF(__pyx_t_2);
10731
10701
__pyx_t_2 = 0;
10732
__pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_buffer)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10702
__pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_buffer)), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10733
10703
__Pyx_GOTREF(__pyx_t_2);
10734
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
10704
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
10735
10705
__Pyx_GIVEREF(__pyx_t_2);
10736
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer);
10737
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer);
10738
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer = __pyx_t_2;
10706
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
10707
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
10708
((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer = __pyx_t_2;
10739
10709
__pyx_t_2 = 0;
10741
/* "/home/denis/work/gevent/gevent/evhttp.pxi":312
10711
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":344
10742
10712
* raise HttpRequestDeleted
10743
10713
* self._output_buffer = buffer(<size_t>self.__obj.output_buffer)
10744
10714
* return self._output_buffer # <<<<<<<<<<<<<<
10716
* def find_input_header(self, char* key):
10718
__Pyx_XDECREF(__pyx_r);
10719
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
10720
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer;
10723
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
10726
__Pyx_XDECREF(__pyx_t_2);
10727
__Pyx_XDECREF(__pyx_t_3);
10728
__Pyx_AddTraceback("gevent.core.http_request_base.output_buffer.__get__");
10731
__Pyx_XGIVEREF(__pyx_r);
10732
__Pyx_RefNannyFinishContext();
10736
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":346
10737
* return self._output_buffer
10739
* def find_input_header(self, char* key): # <<<<<<<<<<<<<<
10740
* if not self.__obj:
10741
* raise HttpRequestDeleted
10744
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_7find_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
10745
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_7find_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
10747
const char* __pyx_v_val;
10748
PyObject *__pyx_r = NULL;
10750
PyObject *__pyx_t_2 = NULL;
10751
__Pyx_RefNannySetupContext("find_input_header");
10752
assert(__pyx_arg_key); {
10753
__pyx_v_key = PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10755
goto __pyx_L4_argument_unpacking_done;
10757
__Pyx_AddTraceback("gevent.core.http_request_base.find_input_header");
10758
__Pyx_RefNannyFinishContext();
10760
__pyx_L4_argument_unpacking_done:;
10762
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":347
10764
* def find_input_header(self, char* key):
10765
* if not self.__obj: # <<<<<<<<<<<<<<
10766
* raise HttpRequestDeleted
10767
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
10769
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
10772
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":348
10773
* def find_input_header(self, char* key):
10774
* if not self.__obj:
10775
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
10776
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
10779
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10780
__Pyx_GOTREF(__pyx_t_2);
10781
__Pyx_Raise(__pyx_t_2, 0, 0);
10782
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10783
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10788
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":349
10789
* if not self.__obj:
10790
* raise HttpRequestDeleted
10791
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key) # <<<<<<<<<<<<<<
10795
__pyx_v_val = evhttp_find_header(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->input_headers, __pyx_v_key);
10797
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":350
10798
* raise HttpRequestDeleted
10799
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
10800
* if val: # <<<<<<<<<<<<<<
10804
__pyx_t_1 = (__pyx_v_val != 0);
10807
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":351
10808
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
10810
* return val # <<<<<<<<<<<<<<
10812
* def find_output_header(self, char* key):
10814
__Pyx_XDECREF(__pyx_r);
10815
__pyx_t_2 = PyBytes_FromString(__pyx_v_val); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10816
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
10817
__pyx_r = ((PyObject *)__pyx_t_2);
10824
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
10827
__Pyx_XDECREF(__pyx_t_2);
10828
__Pyx_AddTraceback("gevent.core.http_request_base.find_input_header");
10831
__Pyx_XGIVEREF(__pyx_r);
10832
__Pyx_RefNannyFinishContext();
10836
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":353
10839
* def find_output_header(self, char* key): # <<<<<<<<<<<<<<
10840
* if not self.__obj:
10841
* raise HttpRequestDeleted
10844
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_8find_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
10845
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_8find_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
10847
const char* __pyx_v_val;
10848
PyObject *__pyx_r = NULL;
10850
PyObject *__pyx_t_2 = NULL;
10851
__Pyx_RefNannySetupContext("find_output_header");
10852
assert(__pyx_arg_key); {
10853
__pyx_v_key = PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10855
goto __pyx_L4_argument_unpacking_done;
10857
__Pyx_AddTraceback("gevent.core.http_request_base.find_output_header");
10858
__Pyx_RefNannyFinishContext();
10860
__pyx_L4_argument_unpacking_done:;
10862
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":354
10864
* def find_output_header(self, char* key):
10865
* if not self.__obj: # <<<<<<<<<<<<<<
10866
* raise HttpRequestDeleted
10867
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
10869
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
10872
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":355
10873
* def find_output_header(self, char* key):
10874
* if not self.__obj:
10875
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
10876
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
10879
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10880
__Pyx_GOTREF(__pyx_t_2);
10881
__Pyx_Raise(__pyx_t_2, 0, 0);
10882
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
10883
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10888
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":356
10889
* if not self.__obj:
10890
* raise HttpRequestDeleted
10891
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key) # <<<<<<<<<<<<<<
10895
__pyx_v_val = evhttp_find_header(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->output_headers, __pyx_v_key);
10897
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":357
10898
* raise HttpRequestDeleted
10899
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
10900
* if val: # <<<<<<<<<<<<<<
10904
__pyx_t_1 = (__pyx_v_val != 0);
10907
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":358
10908
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
10910
* return val # <<<<<<<<<<<<<<
10912
* def add_input_header(self, char* key, char* value):
10914
__Pyx_XDECREF(__pyx_r);
10915
__pyx_t_2 = PyBytes_FromString(__pyx_v_val); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
10916
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
10917
__pyx_r = ((PyObject *)__pyx_t_2);
10924
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
10927
__Pyx_XDECREF(__pyx_t_2);
10928
__Pyx_AddTraceback("gevent.core.http_request_base.find_output_header");
10931
__Pyx_XGIVEREF(__pyx_r);
10932
__Pyx_RefNannyFinishContext();
10936
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":360
10939
* def add_input_header(self, char* key, char* value): # <<<<<<<<<<<<<<
10940
* if not self.__obj:
10941
* raise HttpRequestDeleted
10944
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_9add_input_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
10945
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_9add_input_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
10947
char *__pyx_v_value;
10948
PyObject *__pyx_r = NULL;
10950
PyObject *__pyx_t_2 = NULL;
10952
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__key,&__pyx_n_s__value,0};
10953
__Pyx_RefNannySetupContext("add_input_header");
10954
if (unlikely(__pyx_kwds)) {
10955
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
10956
PyObject* values[2] = {0,0};
10957
switch (PyTuple_GET_SIZE(__pyx_args)) {
10958
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
10959
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
10961
default: goto __pyx_L5_argtuple_error;
10963
switch (PyTuple_GET_SIZE(__pyx_args)) {
10965
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__key);
10966
if (likely(values[0])) kw_args--;
10967
else goto __pyx_L5_argtuple_error;
10969
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
10970
if (likely(values[1])) kw_args--;
10972
__Pyx_RaiseArgtupleInvalid("add_input_header", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10975
if (unlikely(kw_args > 0)) {
10976
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "add_input_header") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10978
__pyx_v_key = PyBytes_AsString(values[0]); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10979
__pyx_v_value = PyBytes_AsString(values[1]); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10980
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
10981
goto __pyx_L5_argtuple_error;
10983
__pyx_v_key = PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10984
__pyx_v_value = PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10986
goto __pyx_L4_argument_unpacking_done;
10987
__pyx_L5_argtuple_error:;
10988
__Pyx_RaiseArgtupleInvalid("add_input_header", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
10990
__Pyx_AddTraceback("gevent.core.http_request_base.add_input_header");
10991
__Pyx_RefNannyFinishContext();
10993
__pyx_L4_argument_unpacking_done:;
10995
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":361
10997
* def add_input_header(self, char* key, char* value):
10998
* if not self.__obj: # <<<<<<<<<<<<<<
10999
* raise HttpRequestDeleted
11000
* if evhttp_add_header(self.__obj.input_headers, key, value):
11002
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
11005
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":362
11006
* def add_input_header(self, char* key, char* value):
11007
* if not self.__obj:
11008
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11009
* if evhttp_add_header(self.__obj.input_headers, key, value):
11010
* raise RuntimeError('Internal error in evhttp_add_header')
11012
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11013
__Pyx_GOTREF(__pyx_t_2);
11014
__Pyx_Raise(__pyx_t_2, 0, 0);
11015
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11016
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11021
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":363
11022
* if not self.__obj:
11023
* raise HttpRequestDeleted
11024
* if evhttp_add_header(self.__obj.input_headers, key, value): # <<<<<<<<<<<<<<
11025
* raise RuntimeError('Internal error in evhttp_add_header')
11028
__pyx_t_3 = evhttp_add_header(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->input_headers, __pyx_v_key, __pyx_v_value);
11031
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":364
11032
* raise HttpRequestDeleted
11033
* if evhttp_add_header(self.__obj.input_headers, key, value):
11034
* raise RuntimeError('Internal error in evhttp_add_header') # <<<<<<<<<<<<<<
11036
* def add_output_header(self, char* key, char* value):
11038
__pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_30), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11039
__Pyx_GOTREF(__pyx_t_2);
11040
__Pyx_Raise(__pyx_t_2, 0, 0);
11041
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11042
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11047
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11050
__Pyx_XDECREF(__pyx_t_2);
11051
__Pyx_AddTraceback("gevent.core.http_request_base.add_input_header");
11054
__Pyx_XGIVEREF(__pyx_r);
11055
__Pyx_RefNannyFinishContext();
11059
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":366
11060
* raise RuntimeError('Internal error in evhttp_add_header')
11062
* def add_output_header(self, char* key, char* value): # <<<<<<<<<<<<<<
11063
* if not self.__obj:
11064
* raise HttpRequestDeleted
11067
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_10add_output_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11068
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_10add_output_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11070
char *__pyx_v_value;
11071
PyObject *__pyx_r = NULL;
11073
PyObject *__pyx_t_2 = NULL;
11075
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__key,&__pyx_n_s__value,0};
11076
__Pyx_RefNannySetupContext("add_output_header");
11077
if (unlikely(__pyx_kwds)) {
11078
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
11079
PyObject* values[2] = {0,0};
11080
switch (PyTuple_GET_SIZE(__pyx_args)) {
11081
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11082
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11084
default: goto __pyx_L5_argtuple_error;
11086
switch (PyTuple_GET_SIZE(__pyx_args)) {
11088
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__key);
11089
if (likely(values[0])) kw_args--;
11090
else goto __pyx_L5_argtuple_error;
11092
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
11093
if (likely(values[1])) kw_args--;
11095
__Pyx_RaiseArgtupleInvalid("add_output_header", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11098
if (unlikely(kw_args > 0)) {
11099
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "add_output_header") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11101
__pyx_v_key = PyBytes_AsString(values[0]); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11102
__pyx_v_value = PyBytes_AsString(values[1]); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11103
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
11104
goto __pyx_L5_argtuple_error;
11106
__pyx_v_key = PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11107
__pyx_v_value = PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11109
goto __pyx_L4_argument_unpacking_done;
11110
__pyx_L5_argtuple_error:;
11111
__Pyx_RaiseArgtupleInvalid("add_output_header", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11113
__Pyx_AddTraceback("gevent.core.http_request_base.add_output_header");
11114
__Pyx_RefNannyFinishContext();
11116
__pyx_L4_argument_unpacking_done:;
11118
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":367
11120
* def add_output_header(self, char* key, char* value):
11121
* if not self.__obj: # <<<<<<<<<<<<<<
11122
* raise HttpRequestDeleted
11123
* if evhttp_add_header(self.__obj.output_headers, key, value):
11125
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
11128
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":368
11129
* def add_output_header(self, char* key, char* value):
11130
* if not self.__obj:
11131
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11132
* if evhttp_add_header(self.__obj.output_headers, key, value):
11133
* raise RuntimeError('Internal error in evhttp_add_header')
11135
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11136
__Pyx_GOTREF(__pyx_t_2);
11137
__Pyx_Raise(__pyx_t_2, 0, 0);
11138
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11139
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11144
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":369
11145
* if not self.__obj:
11146
* raise HttpRequestDeleted
11147
* if evhttp_add_header(self.__obj.output_headers, key, value): # <<<<<<<<<<<<<<
11148
* raise RuntimeError('Internal error in evhttp_add_header')
11151
__pyx_t_3 = evhttp_add_header(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->output_headers, __pyx_v_key, __pyx_v_value);
11154
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":370
11155
* raise HttpRequestDeleted
11156
* if evhttp_add_header(self.__obj.output_headers, key, value):
11157
* raise RuntimeError('Internal error in evhttp_add_header') # <<<<<<<<<<<<<<
11159
* def remove_input_header(self, char* key):
11161
__pyx_t_2 = PyObject_Call(__pyx_builtin_RuntimeError, ((PyObject *)__pyx_k_tuple_31), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11162
__Pyx_GOTREF(__pyx_t_2);
11163
__Pyx_Raise(__pyx_t_2, 0, 0);
11164
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11165
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11170
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11173
__Pyx_XDECREF(__pyx_t_2);
11174
__Pyx_AddTraceback("gevent.core.http_request_base.add_output_header");
11177
__Pyx_XGIVEREF(__pyx_r);
11178
__Pyx_RefNannyFinishContext();
11182
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":372
11183
* raise RuntimeError('Internal error in evhttp_add_header')
11185
* def remove_input_header(self, char* key): # <<<<<<<<<<<<<<
11186
* """Return True if header was found and removed"""
11187
* if not self.__obj:
11190
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_11remove_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
11191
static char __pyx_doc_6gevent_4core_17http_request_base_11remove_input_header[] = "Return True if header was found and removed";
11192
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_11remove_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
11194
PyObject *__pyx_r = NULL;
11196
PyObject *__pyx_t_2 = NULL;
11197
__Pyx_RefNannySetupContext("remove_input_header");
11198
assert(__pyx_arg_key); {
11199
__pyx_v_key = PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11201
goto __pyx_L4_argument_unpacking_done;
11203
__Pyx_AddTraceback("gevent.core.http_request_base.remove_input_header");
11204
__Pyx_RefNannyFinishContext();
11206
__pyx_L4_argument_unpacking_done:;
11208
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":374
11209
* def remove_input_header(self, char* key):
11210
* """Return True if header was found and removed"""
11211
* if not self.__obj: # <<<<<<<<<<<<<<
11212
* raise HttpRequestDeleted
11213
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False
11215
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
11218
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":375
11219
* """Return True if header was found and removed"""
11220
* if not self.__obj:
11221
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11222
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False
11225
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11226
__Pyx_GOTREF(__pyx_t_2);
11227
__Pyx_Raise(__pyx_t_2, 0, 0);
11228
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11229
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11234
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":376
11235
* if not self.__obj:
11236
* raise HttpRequestDeleted
11237
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False # <<<<<<<<<<<<<<
11239
* def remove_output_header(self, char* key):
11241
__Pyx_XDECREF(__pyx_r);
11242
if ((0 == evhttp_remove_header(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->input_headers, __pyx_v_key))) {
11247
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11248
__Pyx_GOTREF(__pyx_t_2);
11249
__pyx_r = __pyx_t_2;
11253
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11256
__Pyx_XDECREF(__pyx_t_2);
11257
__Pyx_AddTraceback("gevent.core.http_request_base.remove_input_header");
11260
__Pyx_XGIVEREF(__pyx_r);
11261
__Pyx_RefNannyFinishContext();
11265
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":378
11266
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False
11268
* def remove_output_header(self, char* key): # <<<<<<<<<<<<<<
11269
* """Return True if header was found and removed"""
11270
* if not self.__obj:
11273
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_12remove_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
11274
static char __pyx_doc_6gevent_4core_17http_request_base_12remove_output_header[] = "Return True if header was found and removed";
11275
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_12remove_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
11277
PyObject *__pyx_r = NULL;
11279
PyObject *__pyx_t_2 = NULL;
11280
__Pyx_RefNannySetupContext("remove_output_header");
11281
assert(__pyx_arg_key); {
11282
__pyx_v_key = PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11284
goto __pyx_L4_argument_unpacking_done;
11286
__Pyx_AddTraceback("gevent.core.http_request_base.remove_output_header");
11287
__Pyx_RefNannyFinishContext();
11289
__pyx_L4_argument_unpacking_done:;
11291
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":380
11292
* def remove_output_header(self, char* key):
11293
* """Return True if header was found and removed"""
11294
* if not self.__obj: # <<<<<<<<<<<<<<
11295
* raise HttpRequestDeleted
11296
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False
11298
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
11301
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":381
11302
* """Return True if header was found and removed"""
11303
* if not self.__obj:
11304
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11305
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False
11308
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11309
__Pyx_GOTREF(__pyx_t_2);
11310
__Pyx_Raise(__pyx_t_2, 0, 0);
11311
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11312
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11317
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":382
11318
* if not self.__obj:
11319
* raise HttpRequestDeleted
11320
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False # <<<<<<<<<<<<<<
11322
* def clear_input_headers(self):
11324
__Pyx_XDECREF(__pyx_r);
11325
if ((0 == evhttp_remove_header(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->output_headers, __pyx_v_key))) {
11330
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11331
__Pyx_GOTREF(__pyx_t_2);
11332
__pyx_r = __pyx_t_2;
11336
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11339
__Pyx_XDECREF(__pyx_t_2);
11340
__Pyx_AddTraceback("gevent.core.http_request_base.remove_output_header");
11343
__Pyx_XGIVEREF(__pyx_r);
11344
__Pyx_RefNannyFinishContext();
11348
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":384
11349
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False
11351
* def clear_input_headers(self): # <<<<<<<<<<<<<<
11352
* if not self.__obj:
11353
* raise HttpRequestDeleted
11356
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_13clear_input_headers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
11357
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_13clear_input_headers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
11358
PyObject *__pyx_r = NULL;
11360
PyObject *__pyx_t_2 = NULL;
11361
__Pyx_RefNannySetupContext("clear_input_headers");
11363
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":385
11365
* def clear_input_headers(self):
11366
* if not self.__obj: # <<<<<<<<<<<<<<
11367
* raise HttpRequestDeleted
11368
* evhttp_clear_headers(self.__obj.input_headers)
11370
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
11373
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":386
11374
* def clear_input_headers(self):
11375
* if not self.__obj:
11376
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11377
* evhttp_clear_headers(self.__obj.input_headers)
11380
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11381
__Pyx_GOTREF(__pyx_t_2);
11382
__Pyx_Raise(__pyx_t_2, 0, 0);
11383
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11384
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11389
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":387
11390
* if not self.__obj:
11391
* raise HttpRequestDeleted
11392
* evhttp_clear_headers(self.__obj.input_headers) # <<<<<<<<<<<<<<
11394
* def clear_output_headers(self):
11396
evhttp_clear_headers(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->input_headers);
11398
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11401
__Pyx_XDECREF(__pyx_t_2);
11402
__Pyx_AddTraceback("gevent.core.http_request_base.clear_input_headers");
11405
__Pyx_XGIVEREF(__pyx_r);
11406
__Pyx_RefNannyFinishContext();
11410
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":389
11411
* evhttp_clear_headers(self.__obj.input_headers)
11413
* def clear_output_headers(self): # <<<<<<<<<<<<<<
11414
* if not self.__obj:
11415
* raise HttpRequestDeleted
11418
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_14clear_output_headers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
11419
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_14clear_output_headers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
11420
PyObject *__pyx_r = NULL;
11422
PyObject *__pyx_t_2 = NULL;
11423
__Pyx_RefNannySetupContext("clear_output_headers");
11425
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":390
11427
* def clear_output_headers(self):
11428
* if not self.__obj: # <<<<<<<<<<<<<<
11429
* raise HttpRequestDeleted
11430
* evhttp_clear_headers(self.__obj.output_headers)
11432
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj != 0));
11435
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":391
11436
* def clear_output_headers(self):
11437
* if not self.__obj:
11438
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11439
* evhttp_clear_headers(self.__obj.output_headers)
11442
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11443
__Pyx_GOTREF(__pyx_t_2);
11444
__Pyx_Raise(__pyx_t_2, 0, 0);
11445
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11446
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11451
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":392
11452
* if not self.__obj:
11453
* raise HttpRequestDeleted
11454
* evhttp_clear_headers(self.__obj.output_headers) # <<<<<<<<<<<<<<
11458
evhttp_clear_headers(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->__pyx___obj->output_headers);
11460
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11463
__Pyx_XDECREF(__pyx_t_2);
11464
__Pyx_AddTraceback("gevent.core.http_request_base.clear_output_headers");
11467
__Pyx_XGIVEREF(__pyx_r);
11468
__Pyx_RefNannyFinishContext();
11472
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":152
11473
* cdef object __weakref__
11474
* cdef evhttp_request* __obj
11475
* cdef public object _input_buffer # <<<<<<<<<<<<<<
11476
* cdef public object _output_buffer
11480
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_13_input_buffer___get__(PyObject *__pyx_v_self); /*proto*/
11481
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_13_input_buffer___get__(PyObject *__pyx_v_self) {
11482
PyObject *__pyx_r = NULL;
11483
__Pyx_RefNannySetupContext("__get__");
11484
__Pyx_XDECREF(__pyx_r);
11485
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer);
11486
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer;
11489
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11491
__Pyx_XGIVEREF(__pyx_r);
11492
__Pyx_RefNannyFinishContext();
11496
static int __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
11497
static int __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
11499
__Pyx_RefNannySetupContext("__set__");
11500
__Pyx_INCREF(__pyx_v_value);
11501
__Pyx_GIVEREF(__pyx_v_value);
11502
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer);
11503
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer);
11504
((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer = __pyx_v_value;
11507
__Pyx_RefNannyFinishContext();
11511
static int __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer_2__del__(PyObject *__pyx_v_self); /*proto*/
11512
static int __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer_2__del__(PyObject *__pyx_v_self) {
11514
__Pyx_RefNannySetupContext("__del__");
11515
__Pyx_INCREF(Py_None);
11516
__Pyx_GIVEREF(Py_None);
11517
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer);
11518
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer);
11519
((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_input_buffer = Py_None;
11522
__Pyx_RefNannyFinishContext();
11526
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":153
11527
* cdef evhttp_request* __obj
11528
* cdef public object _input_buffer
11529
* cdef public object _output_buffer # <<<<<<<<<<<<<<
11531
* def __init__(self, size_t obj):
11534
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_14_output_buffer___get__(PyObject *__pyx_v_self); /*proto*/
11535
static PyObject *__pyx_pf_6gevent_4core_17http_request_base_14_output_buffer___get__(PyObject *__pyx_v_self) {
11536
PyObject *__pyx_r = NULL;
11537
__Pyx_RefNannySetupContext("__get__");
11538
__Pyx_XDECREF(__pyx_r);
11539
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
11540
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer;
11543
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11545
__Pyx_XGIVEREF(__pyx_r);
11546
__Pyx_RefNannyFinishContext();
11550
static int __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
11551
static int __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
11553
__Pyx_RefNannySetupContext("__set__");
11554
__Pyx_INCREF(__pyx_v_value);
11555
__Pyx_GIVEREF(__pyx_v_value);
11556
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
11557
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
11558
((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer = __pyx_v_value;
11561
__Pyx_RefNannyFinishContext();
11565
static int __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer_2__del__(PyObject *__pyx_v_self); /*proto*/
11566
static int __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer_2__del__(PyObject *__pyx_v_self) {
11568
__Pyx_RefNannySetupContext("__del__");
11569
__Pyx_INCREF(Py_None);
11570
__Pyx_GIVEREF(Py_None);
11571
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
11572
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer);
11573
((struct __pyx_obj_6gevent_4core_http_request_base *)__pyx_v_self)->_output_buffer = Py_None;
11576
__Pyx_RefNannyFinishContext();
11580
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":403
11581
* cdef public object default_response_headers
11583
* def __init__(self, size_t obj, object default_response_headers=[]): # <<<<<<<<<<<<<<
11584
* http_request_base.__init__(self, obj)
11585
* self.default_response_headers = default_response_headers
11588
static int __pyx_pf_6gevent_4core_12http_request___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11589
static int __pyx_pf_6gevent_4core_12http_request___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11590
size_t __pyx_v_obj;
11591
PyObject *__pyx_v_default_response_headers = 0;
11593
PyObject *__pyx_t_1 = NULL;
11594
PyObject *__pyx_t_2 = NULL;
11595
PyObject *__pyx_t_3 = NULL;
11596
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s_32,0};
11597
__Pyx_RefNannySetupContext("__init__");
11598
if (unlikely(__pyx_kwds)) {
11599
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
11600
PyObject* values[2] = {0,0};
11601
values[1] = __pyx_k_33;
11602
switch (PyTuple_GET_SIZE(__pyx_args)) {
11603
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11604
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11606
default: goto __pyx_L5_argtuple_error;
11608
switch (PyTuple_GET_SIZE(__pyx_args)) {
11610
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
11611
if (likely(values[0])) kw_args--;
11612
else goto __pyx_L5_argtuple_error;
11615
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_32);
11616
if (value) { values[1] = value; kw_args--; }
11619
if (unlikely(kw_args > 0)) {
11620
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11622
__pyx_v_obj = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11623
__pyx_v_default_response_headers = values[1];
11625
__pyx_v_default_response_headers = __pyx_k_33;
11626
switch (PyTuple_GET_SIZE(__pyx_args)) {
11627
case 2: __pyx_v_default_response_headers = PyTuple_GET_ITEM(__pyx_args, 1);
11628
case 1: __pyx_v_obj = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11630
default: goto __pyx_L5_argtuple_error;
11633
goto __pyx_L4_argument_unpacking_done;
11634
__pyx_L5_argtuple_error:;
11635
__Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11637
__Pyx_AddTraceback("gevent.core.http_request.__init__");
11638
__Pyx_RefNannyFinishContext();
11640
__pyx_L4_argument_unpacking_done:;
11642
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":404
11644
* def __init__(self, size_t obj, object default_response_headers=[]):
11645
* http_request_base.__init__(self, obj) # <<<<<<<<<<<<<<
11646
* self.default_response_headers = default_response_headers
11649
__pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_http_request_base)), __pyx_n_s____init__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11650
__Pyx_GOTREF(__pyx_t_1);
11651
__pyx_t_2 = __Pyx_PyInt_FromSize_t(__pyx_v_obj); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11652
__Pyx_GOTREF(__pyx_t_2);
11653
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11654
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
11655
__Pyx_INCREF(__pyx_v_self);
11656
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self);
11657
__Pyx_GIVEREF(__pyx_v_self);
11658
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
11659
__Pyx_GIVEREF(__pyx_t_2);
11661
__pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11662
__Pyx_GOTREF(__pyx_t_2);
11663
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
11664
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
11665
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11667
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":405
11668
* def __init__(self, size_t obj, object default_response_headers=[]):
11669
* http_request_base.__init__(self, obj)
11670
* self.default_response_headers = default_response_headers # <<<<<<<<<<<<<<
11672
* def __dealloc__(self):
11674
__Pyx_INCREF(__pyx_v_default_response_headers);
11675
__Pyx_GIVEREF(__pyx_v_default_response_headers);
11676
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
11677
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
11678
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers = __pyx_v_default_response_headers;
11683
__Pyx_XDECREF(__pyx_t_1);
11684
__Pyx_XDECREF(__pyx_t_2);
11685
__Pyx_XDECREF(__pyx_t_3);
11686
__Pyx_AddTraceback("gevent.core.http_request.__init__");
11689
__Pyx_RefNannyFinishContext();
11693
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":407
11694
* self.default_response_headers = default_response_headers
11696
* def __dealloc__(self): # <<<<<<<<<<<<<<
11697
* cdef evhttp_request* obj = self.__obj
11701
static void __pyx_pf_6gevent_4core_12http_request_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
11702
static void __pyx_pf_6gevent_4core_12http_request_1__dealloc__(PyObject *__pyx_v_self) {
11703
struct evhttp_request *__pyx_v_obj;
11705
PyObject *__pyx_t_2 = NULL;
11706
PyObject *__pyx_t_3 = NULL;
11707
__Pyx_RefNannySetupContext("__dealloc__");
11709
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":408
11711
* def __dealloc__(self):
11712
* cdef evhttp_request* obj = self.__obj # <<<<<<<<<<<<<<
11716
__pyx_v_obj = ((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx_base.__pyx___obj;
11718
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":409
11719
* def __dealloc__(self):
11720
* cdef evhttp_request* obj = self.__obj
11721
* if obj != NULL: # <<<<<<<<<<<<<<
11723
* report_internal_error(obj)
11725
__pyx_t_1 = (__pyx_v_obj != NULL);
11728
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":410
11729
* cdef evhttp_request* obj = self.__obj
11731
* self.detach() # <<<<<<<<<<<<<<
11732
* report_internal_error(obj)
11735
__pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__detach); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11736
__Pyx_GOTREF(__pyx_t_2);
11737
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11738
__Pyx_GOTREF(__pyx_t_3);
11739
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11740
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
11742
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":411
11745
* report_internal_error(obj) # <<<<<<<<<<<<<<
10746
11747
* def _add_default_response_headers(self):
10748
__Pyx_XDECREF(__pyx_r);
10749
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer);
10750
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->_output_buffer;
11749
__pyx_f_6gevent_4core_report_internal_error(__pyx_v_obj);
10753
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
10754
11754
goto __pyx_L0;
10755
11755
__pyx_L1_error:;
10756
11756
__Pyx_XDECREF(__pyx_t_2);
10757
11757
__Pyx_XDECREF(__pyx_t_3);
10758
__Pyx_AddTraceback("gevent.core.http_request.output_buffer.__get__");
11758
__Pyx_AddTraceback("gevent.core.http_request.__dealloc__");
10761
__Pyx_DECREF((PyObject *)__pyx_v_self);
10762
__Pyx_XGIVEREF(__pyx_r);
10763
11760
__Pyx_RefNannyFinishContext();
10767
/* "/home/denis/work/gevent/gevent/evhttp.pxi":314
10768
* return self._output_buffer
11763
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":413
11764
* report_internal_error(obj)
10770
11766
* def _add_default_response_headers(self): # <<<<<<<<<<<<<<
10771
11767
* for key, value in self.default_response_headers:
10772
11768
* if not self.find_output_header(key):
10775
static PyObject *__pyx_pf_6gevent_4core_12http_request__add_default_response_headers(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
10776
static PyObject *__pyx_pf_6gevent_4core_12http_request__add_default_response_headers(PyObject *__pyx_v_self, PyObject *unused) {
11771
static PyObject *__pyx_pf_6gevent_4core_12http_request_2_add_default_response_headers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
11772
static PyObject *__pyx_pf_6gevent_4core_12http_request_2_add_default_response_headers(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
10777
11773
PyObject *__pyx_v_key;
10778
11774
PyObject *__pyx_v_value;
10779
11775
PyObject *__pyx_r = NULL;
11625
12643
__Pyx_AddTraceback("gevent.core.http_request.send_error");
11626
12644
__pyx_r = NULL;
11628
__Pyx_DECREF((PyObject *)__pyx_v_self);
11629
__Pyx_XGIVEREF(__pyx_r);
11630
__Pyx_RefNannyFinishContext();
11634
/* "/home/denis/work/gevent/gevent/evhttp.pxi":366
11635
* evhttp_send_error(self.__obj, code, reason)
11637
* def find_input_header(self, char* key): # <<<<<<<<<<<<<<
11638
* if not self.__obj:
11639
* raise HttpRequestDeleted
11642
static PyObject *__pyx_pf_6gevent_4core_12http_request_find_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
11643
static PyObject *__pyx_pf_6gevent_4core_12http_request_find_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
11645
const char* __pyx_v_val;
11646
PyObject *__pyx_r = NULL;
11648
PyObject *__pyx_t_2 = NULL;
11649
__Pyx_RefNannySetupContext("find_input_header");
11650
assert(__pyx_arg_key); {
11651
__pyx_v_key = __Pyx_PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11653
goto __pyx_L4_argument_unpacking_done;
11655
__Pyx_AddTraceback("gevent.core.http_request.find_input_header");
11657
__pyx_L4_argument_unpacking_done:;
11658
__Pyx_INCREF((PyObject *)__pyx_v_self);
11660
/* "/home/denis/work/gevent/gevent/evhttp.pxi":367
11662
* def find_input_header(self, char* key):
11663
* if not self.__obj: # <<<<<<<<<<<<<<
11664
* raise HttpRequestDeleted
11665
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
11667
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
11670
/* "/home/denis/work/gevent/gevent/evhttp.pxi":368
11671
* def find_input_header(self, char* key):
11672
* if not self.__obj:
11673
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11674
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
11677
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11678
__Pyx_GOTREF(__pyx_t_2);
11679
__Pyx_Raise(__pyx_t_2, 0, 0);
11680
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11681
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11686
/* "/home/denis/work/gevent/gevent/evhttp.pxi":369
11687
* if not self.__obj:
11688
* raise HttpRequestDeleted
11689
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key) # <<<<<<<<<<<<<<
11693
__pyx_v_val = evhttp_find_header(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->input_headers, __pyx_v_key);
11695
/* "/home/denis/work/gevent/gevent/evhttp.pxi":370
11696
* raise HttpRequestDeleted
11697
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
11698
* if val: # <<<<<<<<<<<<<<
11702
__pyx_t_1 = (__pyx_v_val != 0);
11705
/* "/home/denis/work/gevent/gevent/evhttp.pxi":371
11706
* cdef const_char_ptr val = evhttp_find_header(self.__obj.input_headers, key)
11708
* return val # <<<<<<<<<<<<<<
11710
* def find_output_header(self, char* key):
11712
__Pyx_XDECREF(__pyx_r);
11713
__pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_val); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11714
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
11715
__pyx_r = ((PyObject *)__pyx_t_2);
11722
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11725
__Pyx_XDECREF(__pyx_t_2);
11726
__Pyx_AddTraceback("gevent.core.http_request.find_input_header");
11729
__Pyx_DECREF((PyObject *)__pyx_v_self);
11730
__Pyx_XGIVEREF(__pyx_r);
11731
__Pyx_RefNannyFinishContext();
11735
/* "/home/denis/work/gevent/gevent/evhttp.pxi":373
11738
* def find_output_header(self, char* key): # <<<<<<<<<<<<<<
11739
* if not self.__obj:
11740
* raise HttpRequestDeleted
11743
static PyObject *__pyx_pf_6gevent_4core_12http_request_find_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
11744
static PyObject *__pyx_pf_6gevent_4core_12http_request_find_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
11746
const char* __pyx_v_val;
11747
PyObject *__pyx_r = NULL;
11749
PyObject *__pyx_t_2 = NULL;
11750
__Pyx_RefNannySetupContext("find_output_header");
11751
assert(__pyx_arg_key); {
11752
__pyx_v_key = __Pyx_PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11754
goto __pyx_L4_argument_unpacking_done;
11756
__Pyx_AddTraceback("gevent.core.http_request.find_output_header");
11758
__pyx_L4_argument_unpacking_done:;
11759
__Pyx_INCREF((PyObject *)__pyx_v_self);
11761
/* "/home/denis/work/gevent/gevent/evhttp.pxi":374
11763
* def find_output_header(self, char* key):
11764
* if not self.__obj: # <<<<<<<<<<<<<<
11765
* raise HttpRequestDeleted
11766
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
11768
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
11771
/* "/home/denis/work/gevent/gevent/evhttp.pxi":375
11772
* def find_output_header(self, char* key):
11773
* if not self.__obj:
11774
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11775
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
11778
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11779
__Pyx_GOTREF(__pyx_t_2);
11780
__Pyx_Raise(__pyx_t_2, 0, 0);
11781
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11782
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11787
/* "/home/denis/work/gevent/gevent/evhttp.pxi":376
11788
* if not self.__obj:
11789
* raise HttpRequestDeleted
11790
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key) # <<<<<<<<<<<<<<
11794
__pyx_v_val = evhttp_find_header(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->output_headers, __pyx_v_key);
11796
/* "/home/denis/work/gevent/gevent/evhttp.pxi":377
11797
* raise HttpRequestDeleted
11798
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
11799
* if val: # <<<<<<<<<<<<<<
11803
__pyx_t_1 = (__pyx_v_val != 0);
11806
/* "/home/denis/work/gevent/gevent/evhttp.pxi":378
11807
* cdef const_char_ptr val = evhttp_find_header(self.__obj.output_headers, key)
11809
* return val # <<<<<<<<<<<<<<
11811
* def add_input_header(self, char* key, char* value):
11813
__Pyx_XDECREF(__pyx_r);
11814
__pyx_t_2 = __Pyx_PyBytes_FromString(__pyx_v_val); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11815
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
11816
__pyx_r = ((PyObject *)__pyx_t_2);
11823
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11826
__Pyx_XDECREF(__pyx_t_2);
11827
__Pyx_AddTraceback("gevent.core.http_request.find_output_header");
11830
__Pyx_DECREF((PyObject *)__pyx_v_self);
11831
__Pyx_XGIVEREF(__pyx_r);
11832
__Pyx_RefNannyFinishContext();
11836
/* "/home/denis/work/gevent/gevent/evhttp.pxi":380
11839
* def add_input_header(self, char* key, char* value): # <<<<<<<<<<<<<<
11840
* if not self.__obj:
11841
* raise HttpRequestDeleted
11844
static PyObject *__pyx_pf_6gevent_4core_12http_request_add_input_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11845
static PyObject *__pyx_pf_6gevent_4core_12http_request_add_input_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11847
char *__pyx_v_value;
11848
PyObject *__pyx_r = NULL;
11850
PyObject *__pyx_t_2 = NULL;
11852
PyObject *__pyx_t_4 = NULL;
11853
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__key,&__pyx_n_s__value,0};
11854
__Pyx_RefNannySetupContext("add_input_header");
11855
if (unlikely(__pyx_kwds)) {
11856
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
11857
PyObject* values[2] = {0,0};
11858
switch (PyTuple_GET_SIZE(__pyx_args)) {
11859
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11860
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11862
default: goto __pyx_L5_argtuple_error;
11864
switch (PyTuple_GET_SIZE(__pyx_args)) {
11866
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__key);
11867
if (likely(values[0])) kw_args--;
11868
else goto __pyx_L5_argtuple_error;
11870
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
11871
if (likely(values[1])) kw_args--;
11873
__Pyx_RaiseArgtupleInvalid("add_input_header", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11876
if (unlikely(kw_args > 0)) {
11877
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "add_input_header") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11879
__pyx_v_key = __Pyx_PyBytes_AsString(values[0]); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11880
__pyx_v_value = __Pyx_PyBytes_AsString(values[1]); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11881
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
11882
goto __pyx_L5_argtuple_error;
11884
__pyx_v_key = __Pyx_PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11885
__pyx_v_value = __Pyx_PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11887
goto __pyx_L4_argument_unpacking_done;
11888
__pyx_L5_argtuple_error:;
11889
__Pyx_RaiseArgtupleInvalid("add_input_header", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
11891
__Pyx_AddTraceback("gevent.core.http_request.add_input_header");
11893
__pyx_L4_argument_unpacking_done:;
11894
__Pyx_INCREF((PyObject *)__pyx_v_self);
11896
/* "/home/denis/work/gevent/gevent/evhttp.pxi":381
11898
* def add_input_header(self, char* key, char* value):
11899
* if not self.__obj: # <<<<<<<<<<<<<<
11900
* raise HttpRequestDeleted
11901
* if evhttp_add_header(self.__obj.input_headers, key, value):
11903
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
11906
/* "/home/denis/work/gevent/gevent/evhttp.pxi":382
11907
* def add_input_header(self, char* key, char* value):
11908
* if not self.__obj:
11909
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
11910
* if evhttp_add_header(self.__obj.input_headers, key, value):
11911
* raise RuntimeError('Internal error in evhttp_add_header')
11913
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11914
__Pyx_GOTREF(__pyx_t_2);
11915
__Pyx_Raise(__pyx_t_2, 0, 0);
11916
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11917
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11922
/* "/home/denis/work/gevent/gevent/evhttp.pxi":383
11923
* if not self.__obj:
11924
* raise HttpRequestDeleted
11925
* if evhttp_add_header(self.__obj.input_headers, key, value): # <<<<<<<<<<<<<<
11926
* raise RuntimeError('Internal error in evhttp_add_header')
11929
__pyx_t_3 = evhttp_add_header(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->input_headers, __pyx_v_key, __pyx_v_value);
11932
/* "/home/denis/work/gevent/gevent/evhttp.pxi":384
11933
* raise HttpRequestDeleted
11934
* if evhttp_add_header(self.__obj.input_headers, key, value):
11935
* raise RuntimeError('Internal error in evhttp_add_header') # <<<<<<<<<<<<<<
11937
* def add_output_header(self, char* key, char* value):
11939
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11940
__Pyx_GOTREF(__pyx_t_2);
11941
__Pyx_INCREF(((PyObject *)__pyx_kp_s_31));
11942
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_31));
11943
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_31));
11944
__pyx_t_4 = PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11945
__Pyx_GOTREF(__pyx_t_4);
11946
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
11947
__Pyx_Raise(__pyx_t_4, 0, 0);
11948
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
11949
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
11954
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
11957
__Pyx_XDECREF(__pyx_t_2);
11958
__Pyx_XDECREF(__pyx_t_4);
11959
__Pyx_AddTraceback("gevent.core.http_request.add_input_header");
11962
__Pyx_DECREF((PyObject *)__pyx_v_self);
11963
__Pyx_XGIVEREF(__pyx_r);
11964
__Pyx_RefNannyFinishContext();
11968
/* "/home/denis/work/gevent/gevent/evhttp.pxi":386
11969
* raise RuntimeError('Internal error in evhttp_add_header')
11971
* def add_output_header(self, char* key, char* value): # <<<<<<<<<<<<<<
11972
* if not self.__obj:
11973
* raise HttpRequestDeleted
11976
static PyObject *__pyx_pf_6gevent_4core_12http_request_add_output_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
11977
static PyObject *__pyx_pf_6gevent_4core_12http_request_add_output_header(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
11979
char *__pyx_v_value;
11980
PyObject *__pyx_r = NULL;
11982
PyObject *__pyx_t_2 = NULL;
11984
PyObject *__pyx_t_4 = NULL;
11985
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__key,&__pyx_n_s__value,0};
11986
__Pyx_RefNannySetupContext("add_output_header");
11987
if (unlikely(__pyx_kwds)) {
11988
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
11989
PyObject* values[2] = {0,0};
11990
switch (PyTuple_GET_SIZE(__pyx_args)) {
11991
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
11992
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
11994
default: goto __pyx_L5_argtuple_error;
11996
switch (PyTuple_GET_SIZE(__pyx_args)) {
11998
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__key);
11999
if (likely(values[0])) kw_args--;
12000
else goto __pyx_L5_argtuple_error;
12002
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
12003
if (likely(values[1])) kw_args--;
12005
__Pyx_RaiseArgtupleInvalid("add_output_header", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12008
if (unlikely(kw_args > 0)) {
12009
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "add_output_header") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12011
__pyx_v_key = __Pyx_PyBytes_AsString(values[0]); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12012
__pyx_v_value = __Pyx_PyBytes_AsString(values[1]); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12013
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
12014
goto __pyx_L5_argtuple_error;
12016
__pyx_v_key = __Pyx_PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12017
__pyx_v_value = __Pyx_PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((!__pyx_v_value) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12019
goto __pyx_L4_argument_unpacking_done;
12020
__pyx_L5_argtuple_error:;
12021
__Pyx_RaiseArgtupleInvalid("add_output_header", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12023
__Pyx_AddTraceback("gevent.core.http_request.add_output_header");
12025
__pyx_L4_argument_unpacking_done:;
12026
__Pyx_INCREF((PyObject *)__pyx_v_self);
12028
/* "/home/denis/work/gevent/gevent/evhttp.pxi":387
12030
* def add_output_header(self, char* key, char* value):
12031
* if not self.__obj: # <<<<<<<<<<<<<<
12032
* raise HttpRequestDeleted
12033
* if evhttp_add_header(self.__obj.output_headers, key, value):
12035
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
12038
/* "/home/denis/work/gevent/gevent/evhttp.pxi":388
12039
* def add_output_header(self, char* key, char* value):
12040
* if not self.__obj:
12041
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
12042
* if evhttp_add_header(self.__obj.output_headers, key, value):
12043
* raise RuntimeError('Internal error in evhttp_add_header')
12045
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12046
__Pyx_GOTREF(__pyx_t_2);
12047
__Pyx_Raise(__pyx_t_2, 0, 0);
12048
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12049
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12054
/* "/home/denis/work/gevent/gevent/evhttp.pxi":389
12055
* if not self.__obj:
12056
* raise HttpRequestDeleted
12057
* if evhttp_add_header(self.__obj.output_headers, key, value): # <<<<<<<<<<<<<<
12058
* raise RuntimeError('Internal error in evhttp_add_header')
12061
__pyx_t_3 = evhttp_add_header(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->output_headers, __pyx_v_key, __pyx_v_value);
12064
/* "/home/denis/work/gevent/gevent/evhttp.pxi":390
12065
* raise HttpRequestDeleted
12066
* if evhttp_add_header(self.__obj.output_headers, key, value):
12067
* raise RuntimeError('Internal error in evhttp_add_header') # <<<<<<<<<<<<<<
12069
* def remove_input_header(self, char* key):
12071
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12072
__Pyx_GOTREF(__pyx_t_2);
12073
__Pyx_INCREF(((PyObject *)__pyx_kp_s_31));
12074
PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_31));
12075
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_31));
12076
__pyx_t_4 = PyObject_Call(__pyx_builtin_RuntimeError, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12077
__Pyx_GOTREF(__pyx_t_4);
12078
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12079
__Pyx_Raise(__pyx_t_4, 0, 0);
12080
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
12081
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12086
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12089
__Pyx_XDECREF(__pyx_t_2);
12090
__Pyx_XDECREF(__pyx_t_4);
12091
__Pyx_AddTraceback("gevent.core.http_request.add_output_header");
12094
__Pyx_DECREF((PyObject *)__pyx_v_self);
12095
__Pyx_XGIVEREF(__pyx_r);
12096
__Pyx_RefNannyFinishContext();
12100
/* "/home/denis/work/gevent/gevent/evhttp.pxi":392
12101
* raise RuntimeError('Internal error in evhttp_add_header')
12103
* def remove_input_header(self, char* key): # <<<<<<<<<<<<<<
12104
* """Return True if header was found and removed"""
12105
* if not self.__obj:
12108
static PyObject *__pyx_pf_6gevent_4core_12http_request_remove_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
12109
static char __pyx_doc_6gevent_4core_12http_request_remove_input_header[] = "Return True if header was found and removed";
12110
static PyObject *__pyx_pf_6gevent_4core_12http_request_remove_input_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
12112
PyObject *__pyx_r = NULL;
12114
PyObject *__pyx_t_2 = NULL;
12115
__Pyx_RefNannySetupContext("remove_input_header");
12116
assert(__pyx_arg_key); {
12117
__pyx_v_key = __Pyx_PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12119
goto __pyx_L4_argument_unpacking_done;
12121
__Pyx_AddTraceback("gevent.core.http_request.remove_input_header");
12123
__pyx_L4_argument_unpacking_done:;
12124
__Pyx_INCREF((PyObject *)__pyx_v_self);
12126
/* "/home/denis/work/gevent/gevent/evhttp.pxi":394
12127
* def remove_input_header(self, char* key):
12128
* """Return True if header was found and removed"""
12129
* if not self.__obj: # <<<<<<<<<<<<<<
12130
* raise HttpRequestDeleted
12131
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False
12133
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
12136
/* "/home/denis/work/gevent/gevent/evhttp.pxi":395
12137
* """Return True if header was found and removed"""
12138
* if not self.__obj:
12139
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
12140
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False
12143
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12144
__Pyx_GOTREF(__pyx_t_2);
12145
__Pyx_Raise(__pyx_t_2, 0, 0);
12146
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12147
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12152
/* "/home/denis/work/gevent/gevent/evhttp.pxi":396
12153
* if not self.__obj:
12154
* raise HttpRequestDeleted
12155
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False # <<<<<<<<<<<<<<
12157
* def remove_output_header(self, char* key):
12159
__Pyx_XDECREF(__pyx_r);
12160
if ((0 == evhttp_remove_header(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->input_headers, __pyx_v_key))) {
12165
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12166
__Pyx_GOTREF(__pyx_t_2);
12167
__pyx_r = __pyx_t_2;
12171
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12174
__Pyx_XDECREF(__pyx_t_2);
12175
__Pyx_AddTraceback("gevent.core.http_request.remove_input_header");
12178
__Pyx_DECREF((PyObject *)__pyx_v_self);
12179
__Pyx_XGIVEREF(__pyx_r);
12180
__Pyx_RefNannyFinishContext();
12184
/* "/home/denis/work/gevent/gevent/evhttp.pxi":398
12185
* return True if 0 == evhttp_remove_header(self.__obj.input_headers, key) else False
12187
* def remove_output_header(self, char* key): # <<<<<<<<<<<<<<
12188
* """Return True if header was found and removed"""
12189
* if not self.__obj:
12192
static PyObject *__pyx_pf_6gevent_4core_12http_request_remove_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key); /*proto*/
12193
static char __pyx_doc_6gevent_4core_12http_request_remove_output_header[] = "Return True if header was found and removed";
12194
static PyObject *__pyx_pf_6gevent_4core_12http_request_remove_output_header(PyObject *__pyx_v_self, PyObject *__pyx_arg_key) {
12196
PyObject *__pyx_r = NULL;
12198
PyObject *__pyx_t_2 = NULL;
12199
__Pyx_RefNannySetupContext("remove_output_header");
12200
assert(__pyx_arg_key); {
12201
__pyx_v_key = __Pyx_PyBytes_AsString(__pyx_arg_key); if (unlikely((!__pyx_v_key) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12203
goto __pyx_L4_argument_unpacking_done;
12205
__Pyx_AddTraceback("gevent.core.http_request.remove_output_header");
12207
__pyx_L4_argument_unpacking_done:;
12208
__Pyx_INCREF((PyObject *)__pyx_v_self);
12210
/* "/home/denis/work/gevent/gevent/evhttp.pxi":400
12211
* def remove_output_header(self, char* key):
12212
* """Return True if header was found and removed"""
12213
* if not self.__obj: # <<<<<<<<<<<<<<
12214
* raise HttpRequestDeleted
12215
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False
12217
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
12220
/* "/home/denis/work/gevent/gevent/evhttp.pxi":401
12221
* """Return True if header was found and removed"""
12222
* if not self.__obj:
12223
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
12224
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False
12227
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12228
__Pyx_GOTREF(__pyx_t_2);
12229
__Pyx_Raise(__pyx_t_2, 0, 0);
12230
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12231
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12236
/* "/home/denis/work/gevent/gevent/evhttp.pxi":402
12237
* if not self.__obj:
12238
* raise HttpRequestDeleted
12239
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False # <<<<<<<<<<<<<<
12241
* def clear_input_headers(self):
12243
__Pyx_XDECREF(__pyx_r);
12244
if ((0 == evhttp_remove_header(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->output_headers, __pyx_v_key))) {
12249
__pyx_t_2 = __Pyx_PyBool_FromLong(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12250
__Pyx_GOTREF(__pyx_t_2);
12251
__pyx_r = __pyx_t_2;
12255
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12258
__Pyx_XDECREF(__pyx_t_2);
12259
__Pyx_AddTraceback("gevent.core.http_request.remove_output_header");
12262
__Pyx_DECREF((PyObject *)__pyx_v_self);
12263
__Pyx_XGIVEREF(__pyx_r);
12264
__Pyx_RefNannyFinishContext();
12268
/* "/home/denis/work/gevent/gevent/evhttp.pxi":404
12269
* return True if 0 == evhttp_remove_header(self.__obj.output_headers, key) else False
12271
* def clear_input_headers(self): # <<<<<<<<<<<<<<
12272
* if not self.__obj:
12273
* raise HttpRequestDeleted
12276
static PyObject *__pyx_pf_6gevent_4core_12http_request_clear_input_headers(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
12277
static PyObject *__pyx_pf_6gevent_4core_12http_request_clear_input_headers(PyObject *__pyx_v_self, PyObject *unused) {
12278
PyObject *__pyx_r = NULL;
12280
PyObject *__pyx_t_2 = NULL;
12281
__Pyx_RefNannySetupContext("clear_input_headers");
12282
__Pyx_INCREF((PyObject *)__pyx_v_self);
12284
/* "/home/denis/work/gevent/gevent/evhttp.pxi":405
12286
* def clear_input_headers(self):
12287
* if not self.__obj: # <<<<<<<<<<<<<<
12288
* raise HttpRequestDeleted
12289
* evhttp_clear_headers(self.__obj.input_headers)
12291
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
12294
/* "/home/denis/work/gevent/gevent/evhttp.pxi":406
12295
* def clear_input_headers(self):
12296
* if not self.__obj:
12297
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
12298
* evhttp_clear_headers(self.__obj.input_headers)
12301
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12302
__Pyx_GOTREF(__pyx_t_2);
12303
__Pyx_Raise(__pyx_t_2, 0, 0);
12304
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12305
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12310
/* "/home/denis/work/gevent/gevent/evhttp.pxi":407
12311
* if not self.__obj:
12312
* raise HttpRequestDeleted
12313
* evhttp_clear_headers(self.__obj.input_headers) # <<<<<<<<<<<<<<
12315
* def clear_output_headers(self):
12317
evhttp_clear_headers(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->input_headers);
12319
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12322
__Pyx_XDECREF(__pyx_t_2);
12323
__Pyx_AddTraceback("gevent.core.http_request.clear_input_headers");
12326
__Pyx_DECREF((PyObject *)__pyx_v_self);
12327
__Pyx_XGIVEREF(__pyx_r);
12328
__Pyx_RefNannyFinishContext();
12332
/* "/home/denis/work/gevent/gevent/evhttp.pxi":409
12333
* evhttp_clear_headers(self.__obj.input_headers)
12335
* def clear_output_headers(self): # <<<<<<<<<<<<<<
12336
* if not self.__obj:
12337
* raise HttpRequestDeleted
12340
static PyObject *__pyx_pf_6gevent_4core_12http_request_clear_output_headers(PyObject *__pyx_v_self, PyObject *unused); /*proto*/
12341
static PyObject *__pyx_pf_6gevent_4core_12http_request_clear_output_headers(PyObject *__pyx_v_self, PyObject *unused) {
12342
PyObject *__pyx_r = NULL;
12344
PyObject *__pyx_t_2 = NULL;
12345
__Pyx_RefNannySetupContext("clear_output_headers");
12346
__Pyx_INCREF((PyObject *)__pyx_v_self);
12348
/* "/home/denis/work/gevent/gevent/evhttp.pxi":410
12350
* def clear_output_headers(self):
12351
* if not self.__obj: # <<<<<<<<<<<<<<
12352
* raise HttpRequestDeleted
12353
* evhttp_clear_headers(self.__obj.output_headers)
12355
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj != 0));
12358
/* "/home/denis/work/gevent/gevent/evhttp.pxi":411
12359
* def clear_output_headers(self):
12360
* if not self.__obj:
12361
* raise HttpRequestDeleted # <<<<<<<<<<<<<<
12362
* evhttp_clear_headers(self.__obj.output_headers)
12365
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__HttpRequestDeleted); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12366
__Pyx_GOTREF(__pyx_t_2);
12367
__Pyx_Raise(__pyx_t_2, 0, 0);
12368
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12369
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 411; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12374
/* "/home/denis/work/gevent/gevent/evhttp.pxi":412
12375
* if not self.__obj:
12376
* raise HttpRequestDeleted
12377
* evhttp_clear_headers(self.__obj.output_headers) # <<<<<<<<<<<<<<
12381
evhttp_clear_headers(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->__pyx___obj->output_headers);
12383
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12386
__Pyx_XDECREF(__pyx_t_2);
12387
__Pyx_AddTraceback("gevent.core.http_request.clear_output_headers");
12390
__Pyx_DECREF((PyObject *)__pyx_v_self);
12391
__Pyx_XGIVEREF(__pyx_r);
12392
__Pyx_RefNannyFinishContext();
12396
/* "/home/denis/work/gevent/gevent/evhttp.pxi":419
12397
* cdef evhttp_connection* __obj
12399
* def __init__(self, size_t _obj): # <<<<<<<<<<<<<<
12400
* self.__obj = <evhttp_connection*>_obj
12646
__Pyx_XGIVEREF(__pyx_r);
12647
__Pyx_RefNannyFinishContext();
12651
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":401
12652
* # prefer gevent.http and gevent.wsgi which should be safe
12654
* cdef public object default_response_headers # <<<<<<<<<<<<<<
12656
* def __init__(self, size_t obj, object default_response_headers=[]):
12659
static PyObject *__pyx_pf_6gevent_4core_12http_request_24default_response_headers___get__(PyObject *__pyx_v_self); /*proto*/
12660
static PyObject *__pyx_pf_6gevent_4core_12http_request_24default_response_headers___get__(PyObject *__pyx_v_self) {
12661
PyObject *__pyx_r = NULL;
12662
__Pyx_RefNannySetupContext("__get__");
12663
__Pyx_XDECREF(__pyx_r);
12664
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
12665
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers;
12668
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12670
__Pyx_XGIVEREF(__pyx_r);
12671
__Pyx_RefNannyFinishContext();
12675
static int __pyx_pf_6gevent_4core_12http_request_24default_response_headers_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
12676
static int __pyx_pf_6gevent_4core_12http_request_24default_response_headers_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
12678
__Pyx_RefNannySetupContext("__set__");
12679
__Pyx_INCREF(__pyx_v_value);
12680
__Pyx_GIVEREF(__pyx_v_value);
12681
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
12682
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
12683
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers = __pyx_v_value;
12686
__Pyx_RefNannyFinishContext();
12690
static int __pyx_pf_6gevent_4core_12http_request_24default_response_headers_2__del__(PyObject *__pyx_v_self); /*proto*/
12691
static int __pyx_pf_6gevent_4core_12http_request_24default_response_headers_2__del__(PyObject *__pyx_v_self) {
12693
__Pyx_RefNannySetupContext("__del__");
12694
__Pyx_INCREF(Py_None);
12695
__Pyx_GIVEREF(Py_None);
12696
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
12697
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers);
12698
((struct __pyx_obj_6gevent_4core_http_request *)__pyx_v_self)->default_response_headers = Py_None;
12701
__Pyx_RefNannyFinishContext();
12705
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":473
12708
* def __init__(self, object callback=None, size_t obj=0): # <<<<<<<<<<<<<<
12710
* self.callback = callback
12713
static int __pyx_pf_6gevent_4core_19http_request_client___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
12714
static int __pyx_pf_6gevent_4core_19http_request_client___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12715
PyObject *__pyx_v_callback = 0;
12716
size_t __pyx_v_obj;
12719
PyObject *__pyx_t_2 = NULL;
12720
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__callback,&__pyx_n_s__obj,0};
12721
__Pyx_RefNannySetupContext("__init__");
12722
if (unlikely(__pyx_kwds)) {
12723
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
12724
PyObject* values[2] = {0,0};
12725
values[0] = ((PyObject *)Py_None);
12726
switch (PyTuple_GET_SIZE(__pyx_args)) {
12727
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12728
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12730
default: goto __pyx_L5_argtuple_error;
12732
switch (PyTuple_GET_SIZE(__pyx_args)) {
12735
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__callback);
12736
if (value) { values[0] = value; kw_args--; }
12740
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
12741
if (value) { values[1] = value; kw_args--; }
12744
if (unlikely(kw_args > 0)) {
12745
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12747
__pyx_v_callback = values[0];
12749
__pyx_v_obj = __Pyx_PyInt_AsSize_t(values[1]); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12751
__pyx_v_obj = ((size_t)0);
12754
__pyx_v_callback = ((PyObject *)Py_None);
12755
__pyx_v_obj = ((size_t)0);
12756
switch (PyTuple_GET_SIZE(__pyx_args)) {
12757
case 2: __pyx_v_obj = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12758
case 1: __pyx_v_callback = PyTuple_GET_ITEM(__pyx_args, 0);
12760
default: goto __pyx_L5_argtuple_error;
12763
goto __pyx_L4_argument_unpacking_done;
12764
__pyx_L5_argtuple_error:;
12765
__Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12767
__Pyx_AddTraceback("gevent.core.http_request_client.__init__");
12768
__Pyx_RefNannyFinishContext();
12770
__pyx_L4_argument_unpacking_done:;
12772
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":474
12774
* def __init__(self, object callback=None, size_t obj=0):
12775
* self._incref = 0 # <<<<<<<<<<<<<<
12776
* self.callback = callback
12779
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->_incref = 0;
12781
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":475
12782
* def __init__(self, object callback=None, size_t obj=0):
12784
* self.callback = callback # <<<<<<<<<<<<<<
12786
* self.__obj = <evhttp_request*>obj
12788
__Pyx_INCREF(__pyx_v_callback);
12789
__Pyx_GIVEREF(__pyx_v_callback);
12790
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
12791
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
12792
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback = __pyx_v_callback;
12794
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":476
12796
* self.callback = callback
12797
* if obj: # <<<<<<<<<<<<<<
12798
* self.__obj = <evhttp_request*>obj
12803
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":477
12804
* self.callback = callback
12806
* self.__obj = <evhttp_request*>obj # <<<<<<<<<<<<<<
12810
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->__pyx_base.__pyx___obj = ((struct evhttp_request *)__pyx_v_obj);
12812
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":478
12814
* self.__obj = <evhttp_request*>obj
12815
* self._owned = 0 # <<<<<<<<<<<<<<
12817
* self.__obj = evhttp_request_new(_http_request_cb_handler, <void*>self)
12819
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->_owned = 0;
12824
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":480
12827
* self.__obj = evhttp_request_new(_http_request_cb_handler, <void*>self) # <<<<<<<<<<<<<<
12828
* if not self.__obj:
12829
* raise IOError('evhttp_request_new() failed')
12831
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->__pyx_base.__pyx___obj = evhttp_request_new(__pyx_f_6gevent_4core__http_request_cb_handler, ((void *)__pyx_v_self));
12833
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":481
12835
* self.__obj = evhttp_request_new(_http_request_cb_handler, <void*>self)
12836
* if not self.__obj: # <<<<<<<<<<<<<<
12837
* raise IOError('evhttp_request_new() failed')
12840
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->__pyx_base.__pyx___obj != 0));
12843
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":482
12844
* self.__obj = evhttp_request_new(_http_request_cb_handler, <void*>self)
12845
* if not self.__obj:
12846
* raise IOError('evhttp_request_new() failed') # <<<<<<<<<<<<<<
12850
__pyx_t_2 = PyObject_Call(__pyx_builtin_IOError, ((PyObject *)__pyx_k_tuple_37), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12851
__Pyx_GOTREF(__pyx_t_2);
12852
__Pyx_Raise(__pyx_t_2, 0, 0);
12853
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12854
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12859
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":483
12860
* if not self.__obj:
12861
* raise IOError('evhttp_request_new() failed')
12862
* self._owned = 1 # <<<<<<<<<<<<<<
12866
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->_owned = 1;
12868
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":484
12869
* raise IOError('evhttp_request_new() failed')
12871
* self._addref() # <<<<<<<<<<<<<<
12873
* cdef _addref(self):
12875
__pyx_t_2 = ((struct __pyx_vtabstruct_6gevent_4core_http_request_client *)((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->__pyx_vtab)->_addref(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
12876
__Pyx_GOTREF(__pyx_t_2);
12877
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
12884
__Pyx_XDECREF(__pyx_t_2);
12885
__Pyx_AddTraceback("gevent.core.http_request_client.__init__");
12888
__Pyx_RefNannyFinishContext();
12892
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":486
12895
* cdef _addref(self): # <<<<<<<<<<<<<<
12896
* if self._incref <= 0:
12897
* Py_INCREF(<PyObjectPtr>self)
12900
static PyObject *__pyx_f_6gevent_4core_19http_request_client__addref(struct __pyx_obj_6gevent_4core_http_request_client *__pyx_v_self) {
12901
PyObject *__pyx_r = NULL;
12903
__Pyx_RefNannySetupContext("_addref");
12905
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":487
12907
* cdef _addref(self):
12908
* if self._incref <= 0: # <<<<<<<<<<<<<<
12909
* Py_INCREF(<PyObjectPtr>self)
12910
* self._incref += 1
12912
__pyx_t_1 = (__pyx_v_self->_incref <= 0);
12915
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":488
12916
* cdef _addref(self):
12917
* if self._incref <= 0:
12918
* Py_INCREF(<PyObjectPtr>self) # <<<<<<<<<<<<<<
12919
* self._incref += 1
12922
Py_INCREF(((PyObject*)__pyx_v_self));
12924
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":489
12925
* if self._incref <= 0:
12926
* Py_INCREF(<PyObjectPtr>self)
12927
* self._incref += 1 # <<<<<<<<<<<<<<
12929
* cdef _delref(self):
12931
__pyx_v_self->_incref = (__pyx_v_self->_incref + 1);
12936
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
12937
__Pyx_XGIVEREF(__pyx_r);
12938
__Pyx_RefNannyFinishContext();
12942
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":491
12943
* self._incref += 1
12945
* cdef _delref(self): # <<<<<<<<<<<<<<
12946
* if self._incref > 0:
12947
* Py_DECREF(<PyObjectPtr>self)
12950
static PyObject *__pyx_f_6gevent_4core_19http_request_client__delref(struct __pyx_obj_6gevent_4core_http_request_client *__pyx_v_self) {
12951
PyObject *__pyx_r = NULL;
12953
__Pyx_RefNannySetupContext("_delref");
12955
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":492
12957
* cdef _delref(self):
12958
* if self._incref > 0: # <<<<<<<<<<<<<<
12959
* Py_DECREF(<PyObjectPtr>self)
12960
* self._incref -= 1
12962
__pyx_t_1 = (__pyx_v_self->_incref > 0);
12965
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":493
12966
* cdef _delref(self):
12967
* if self._incref > 0:
12968
* Py_DECREF(<PyObjectPtr>self) # <<<<<<<<<<<<<<
12969
* self._incref -= 1
12970
* self.callback = None
12972
Py_DECREF(((PyObject*)__pyx_v_self));
12974
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":494
12975
* if self._incref > 0:
12976
* Py_DECREF(<PyObjectPtr>self)
12977
* self._incref -= 1 # <<<<<<<<<<<<<<
12978
* self.callback = None
12981
__pyx_v_self->_incref = (__pyx_v_self->_incref - 1);
12986
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":495
12987
* Py_DECREF(<PyObjectPtr>self)
12988
* self._incref -= 1
12989
* self.callback = None # <<<<<<<<<<<<<<
12991
* def __dealloc__(self):
12993
__Pyx_INCREF(Py_None);
12994
__Pyx_GIVEREF(Py_None);
12995
__Pyx_GOTREF(__pyx_v_self->callback);
12996
__Pyx_DECREF(__pyx_v_self->callback);
12997
__pyx_v_self->callback = Py_None;
12999
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
13000
__Pyx_XGIVEREF(__pyx_r);
13001
__Pyx_RefNannyFinishContext();
13005
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":497
13006
* self.callback = None
13008
* def __dealloc__(self): # <<<<<<<<<<<<<<
13009
* cdef evhttp_request* obj = self.__obj
13013
static void __pyx_pf_6gevent_4core_19http_request_client_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
13014
static void __pyx_pf_6gevent_4core_19http_request_client_1__dealloc__(PyObject *__pyx_v_self) {
13015
struct evhttp_request *__pyx_v_obj;
13017
PyObject *__pyx_t_2 = NULL;
13018
PyObject *__pyx_t_3 = NULL;
13019
__Pyx_RefNannySetupContext("__dealloc__");
13021
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":498
13023
* def __dealloc__(self):
13024
* cdef evhttp_request* obj = self.__obj # <<<<<<<<<<<<<<
13028
__pyx_v_obj = ((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->__pyx_base.__pyx___obj;
13030
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":499
13031
* def __dealloc__(self):
13032
* cdef evhttp_request* obj = self.__obj
13033
* if obj != NULL: # <<<<<<<<<<<<<<
13037
__pyx_t_1 = (__pyx_v_obj != NULL);
13040
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":500
13041
* cdef evhttp_request* obj = self.__obj
13043
* self.detach() # <<<<<<<<<<<<<<
13045
* evhttp_request_free(obj)
13047
__pyx_t_2 = PyObject_GetAttr(__pyx_v_self, __pyx_n_s__detach); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13048
__Pyx_GOTREF(__pyx_t_2);
13049
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13050
__Pyx_GOTREF(__pyx_t_3);
13051
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
13052
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
13054
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":501
13057
* if self._owned: # <<<<<<<<<<<<<<
13058
* evhttp_request_free(obj)
13061
if (((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->_owned) {
13063
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":502
13066
* evhttp_request_free(obj) # <<<<<<<<<<<<<<
13070
evhttp_request_free(__pyx_v_obj);
13080
__Pyx_XDECREF(__pyx_t_2);
13081
__Pyx_XDECREF(__pyx_t_3);
13082
__Pyx_AddTraceback("gevent.core.http_request_client.__dealloc__");
13084
__Pyx_RefNannyFinishContext();
13087
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":469
13088
* """Wrapper around libevent's :class:`evhttp_request` structure."""
13090
* cdef public int _owned # <<<<<<<<<<<<<<
13091
* cdef public callback
13095
static PyObject *__pyx_pf_6gevent_4core_19http_request_client_6_owned___get__(PyObject *__pyx_v_self); /*proto*/
13096
static PyObject *__pyx_pf_6gevent_4core_19http_request_client_6_owned___get__(PyObject *__pyx_v_self) {
13097
PyObject *__pyx_r = NULL;
13098
PyObject *__pyx_t_1 = NULL;
13099
__Pyx_RefNannySetupContext("__get__");
13100
__Pyx_XDECREF(__pyx_r);
13101
__pyx_t_1 = PyInt_FromLong(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->_owned); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13102
__Pyx_GOTREF(__pyx_t_1);
13103
__pyx_r = __pyx_t_1;
13107
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
13110
__Pyx_XDECREF(__pyx_t_1);
13111
__Pyx_AddTraceback("gevent.core.http_request_client._owned.__get__");
13114
__Pyx_XGIVEREF(__pyx_r);
13115
__Pyx_RefNannyFinishContext();
13119
static int __pyx_pf_6gevent_4core_19http_request_client_6_owned_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
13120
static int __pyx_pf_6gevent_4core_19http_request_client_6_owned_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13123
__Pyx_RefNannySetupContext("__set__");
13124
__pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 469; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13125
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->_owned = __pyx_t_1;
13130
__Pyx_AddTraceback("gevent.core.http_request_client._owned.__set__");
13133
__Pyx_RefNannyFinishContext();
13137
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":470
13139
* cdef public int _owned
13140
* cdef public callback # <<<<<<<<<<<<<<
13145
static PyObject *__pyx_pf_6gevent_4core_19http_request_client_8callback___get__(PyObject *__pyx_v_self); /*proto*/
13146
static PyObject *__pyx_pf_6gevent_4core_19http_request_client_8callback___get__(PyObject *__pyx_v_self) {
13147
PyObject *__pyx_r = NULL;
13148
__Pyx_RefNannySetupContext("__get__");
13149
__Pyx_XDECREF(__pyx_r);
13150
__Pyx_INCREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
13151
__pyx_r = ((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback;
13154
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
13156
__Pyx_XGIVEREF(__pyx_r);
13157
__Pyx_RefNannyFinishContext();
13161
static int __pyx_pf_6gevent_4core_19http_request_client_8callback_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
13162
static int __pyx_pf_6gevent_4core_19http_request_client_8callback_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
13164
__Pyx_RefNannySetupContext("__set__");
13165
__Pyx_INCREF(__pyx_v_value);
13166
__Pyx_GIVEREF(__pyx_v_value);
13167
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
13168
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
13169
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback = __pyx_v_value;
13172
__Pyx_RefNannyFinishContext();
13176
static int __pyx_pf_6gevent_4core_19http_request_client_8callback_2__del__(PyObject *__pyx_v_self); /*proto*/
13177
static int __pyx_pf_6gevent_4core_19http_request_client_8callback_2__del__(PyObject *__pyx_v_self) {
13179
__Pyx_RefNannySetupContext("__del__");
13180
__Pyx_INCREF(Py_None);
13181
__Pyx_GIVEREF(Py_None);
13182
__Pyx_GOTREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
13183
__Pyx_DECREF(((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback);
13184
((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_self)->callback = Py_None;
13187
__Pyx_RefNannyFinishContext();
13191
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":510
13192
* cdef public int _owned
13194
* def __init__(self, size_t obj, owned=0): # <<<<<<<<<<<<<<
13195
* self.__obj = <evhttp_connection*>obj
13196
* self._owned = owned
12404
13199
static int __pyx_pf_6gevent_4core_15http_connection___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
12405
13200
static int __pyx_pf_6gevent_4core_15http_connection___init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
12406
size_t __pyx_v__obj;
13201
size_t __pyx_v_obj;
13202
PyObject *__pyx_v_owned = 0;
12408
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s___obj,0};
13205
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__owned,0};
12409
13206
__Pyx_RefNannySetupContext("__init__");
12410
13207
if (unlikely(__pyx_kwds)) {
12411
13208
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
12412
PyObject* values[1] = {0};
13209
PyObject* values[2] = {0,0};
13210
values[1] = ((PyObject *)__pyx_int_0);
12413
13211
switch (PyTuple_GET_SIZE(__pyx_args)) {
13212
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
12414
13213
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
12415
13214
case 0: break;
12416
13215
default: goto __pyx_L5_argtuple_error;
12418
13217
switch (PyTuple_GET_SIZE(__pyx_args)) {
12420
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s___obj);
13219
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
12421
13220
if (likely(values[0])) kw_args--;
12422
13221
else goto __pyx_L5_argtuple_error;
13224
PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s__owned);
13225
if (value) { values[1] = value; kw_args--; }
12424
13228
if (unlikely(kw_args > 0)) {
12425
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13229
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12427
__pyx_v__obj = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v__obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12428
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
12429
goto __pyx_L5_argtuple_error;
13231
__pyx_v_obj = __Pyx_PyInt_AsSize_t(values[0]); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13232
__pyx_v_owned = values[1];
12431
__pyx_v__obj = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v__obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13234
__pyx_v_owned = ((PyObject *)__pyx_int_0);
13235
switch (PyTuple_GET_SIZE(__pyx_args)) {
13236
case 2: __pyx_v_owned = PyTuple_GET_ITEM(__pyx_args, 1);
13237
case 1: __pyx_v_obj = __Pyx_PyInt_AsSize_t(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((__pyx_v_obj == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13239
default: goto __pyx_L5_argtuple_error;
12433
13242
goto __pyx_L4_argument_unpacking_done;
12434
13243
__pyx_L5_argtuple_error:;
12435
__Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13244
__Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
12436
13245
__pyx_L3_error:;
12437
13246
__Pyx_AddTraceback("gevent.core.http_connection.__init__");
13247
__Pyx_RefNannyFinishContext();
12439
13249
__pyx_L4_argument_unpacking_done:;
12441
/* "/home/denis/work/gevent/gevent/evhttp.pxi":420
12443
* def __init__(self, size_t _obj):
12444
* self.__obj = <evhttp_connection*>_obj # <<<<<<<<<<<<<<
12448
((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj = ((struct evhttp_connection *)__pyx_v__obj);
13251
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":511
13253
* def __init__(self, size_t obj, owned=0):
13254
* self.__obj = <evhttp_connection*>obj # <<<<<<<<<<<<<<
13255
* self._owned = owned
13258
((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj = ((struct evhttp_connection *)__pyx_v_obj);
13260
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":512
13261
* def __init__(self, size_t obj, owned=0):
13262
* self.__obj = <evhttp_connection*>obj
13263
* self._owned = owned # <<<<<<<<<<<<<<
13267
__pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_owned); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13268
((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->_owned = __pyx_t_1;
12451
__Pyx_RefNannyFinishContext();
12455
/* "/home/denis/work/gevent/gevent/evhttp.pxi":424
13273
__Pyx_AddTraceback("gevent.core.http_connection.__init__");
13276
__Pyx_RefNannyFinishContext();
13280
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":515
13283
* def new(cls, char* address, unsigned short port): # <<<<<<<<<<<<<<
13284
* cdef void* ptr = evhttp_connection_new(address, port)
13288
static PyObject *__pyx_pf_6gevent_4core_15http_connection_1new(PyObject *__pyx_v_cls, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
13289
static PyObject *__pyx_pf_6gevent_4core_15http_connection_1new(PyObject *__pyx_v_cls, PyObject *__pyx_args, PyObject *__pyx_kwds) {
13290
char *__pyx_v_address;
13291
unsigned short __pyx_v_port;
13293
PyObject *__pyx_r = NULL;
13295
PyObject *__pyx_t_2 = NULL;
13296
PyObject *__pyx_t_3 = NULL;
13297
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__address,&__pyx_n_s__port,0};
13298
__Pyx_RefNannySetupContext("new");
13299
if (unlikely(__pyx_kwds)) {
13300
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
13301
PyObject* values[2] = {0,0};
13302
switch (PyTuple_GET_SIZE(__pyx_args)) {
13303
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
13304
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
13306
default: goto __pyx_L5_argtuple_error;
13308
switch (PyTuple_GET_SIZE(__pyx_args)) {
13310
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__address);
13311
if (likely(values[0])) kw_args--;
13312
else goto __pyx_L5_argtuple_error;
13314
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__port);
13315
if (likely(values[1])) kw_args--;
13317
__Pyx_RaiseArgtupleInvalid("new", 1, 2, 2, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13320
if (unlikely(kw_args > 0)) {
13321
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "new") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13323
__pyx_v_address = PyBytes_AsString(values[0]); if (unlikely((!__pyx_v_address) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13324
__pyx_v_port = __Pyx_PyInt_AsUnsignedShort(values[1]); if (unlikely((__pyx_v_port == (unsigned short)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13325
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
13326
goto __pyx_L5_argtuple_error;
13328
__pyx_v_address = PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 0)); if (unlikely((!__pyx_v_address) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13329
__pyx_v_port = __Pyx_PyInt_AsUnsignedShort(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_port == (unsigned short)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13331
goto __pyx_L4_argument_unpacking_done;
13332
__pyx_L5_argtuple_error:;
13333
__Pyx_RaiseArgtupleInvalid("new", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
13335
__Pyx_AddTraceback("gevent.core.http_connection.new");
13336
__Pyx_RefNannyFinishContext();
13338
__pyx_L4_argument_unpacking_done:;
13340
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":516
13342
* def new(cls, char* address, unsigned short port):
13343
* cdef void* ptr = evhttp_connection_new(address, port) # <<<<<<<<<<<<<<
13345
* return cls(<size_t>ptr, 1)
13347
__pyx_v_ptr = evhttp_connection_new(__pyx_v_address, __pyx_v_port);
13349
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":517
13350
* def new(cls, char* address, unsigned short port):
13351
* cdef void* ptr = evhttp_connection_new(address, port)
13352
* if ptr != NULL: # <<<<<<<<<<<<<<
13353
* return cls(<size_t>ptr, 1)
13356
__pyx_t_1 = (__pyx_v_ptr != NULL);
13359
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":518
13360
* cdef void* ptr = evhttp_connection_new(address, port)
13362
* return cls(<size_t>ptr, 1) # <<<<<<<<<<<<<<
13364
* def __dealloc__(self):
13366
__Pyx_XDECREF(__pyx_r);
13367
__pyx_t_2 = __Pyx_PyInt_FromSize_t(((size_t)__pyx_v_ptr)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13368
__Pyx_GOTREF(__pyx_t_2);
13369
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13370
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
13371
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
13372
__Pyx_GIVEREF(__pyx_t_2);
13373
__Pyx_INCREF(__pyx_int_1);
13374
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_int_1);
13375
__Pyx_GIVEREF(__pyx_int_1);
13377
__pyx_t_2 = PyObject_Call(__pyx_v_cls, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 518; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
13378
__Pyx_GOTREF(__pyx_t_2);
13379
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
13380
__pyx_r = __pyx_t_2;
13387
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
13390
__Pyx_XDECREF(__pyx_t_2);
13391
__Pyx_XDECREF(__pyx_t_3);
13392
__Pyx_AddTraceback("gevent.core.http_connection.new");
13395
__Pyx_XGIVEREF(__pyx_r);
13396
__Pyx_RefNannyFinishContext();
13400
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":520
13401
* return cls(<size_t>ptr, 1)
13403
* def __dealloc__(self): # <<<<<<<<<<<<<<
13404
* cdef evhttp_connection* obj = self.__obj
13408
static void __pyx_pf_6gevent_4core_15http_connection_2__dealloc__(PyObject *__pyx_v_self); /*proto*/
13409
static void __pyx_pf_6gevent_4core_15http_connection_2__dealloc__(PyObject *__pyx_v_self) {
13410
struct evhttp_connection *__pyx_v_obj;
13412
__Pyx_RefNannySetupContext("__dealloc__");
13414
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":521
13416
* def __dealloc__(self):
13417
* cdef evhttp_connection* obj = self.__obj # <<<<<<<<<<<<<<
13419
* self.__obj = NULL
13421
__pyx_v_obj = ((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj;
13423
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":522
13424
* def __dealloc__(self):
13425
* cdef evhttp_connection* obj = self.__obj
13426
* if obj != NULL: # <<<<<<<<<<<<<<
13427
* self.__obj = NULL
13430
__pyx_t_1 = (__pyx_v_obj != NULL);
13433
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":523
13434
* cdef evhttp_connection* obj = self.__obj
13436
* self.__obj = NULL # <<<<<<<<<<<<<<
13438
* evhttp_connection_free(obj)
13440
((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj = NULL;
13442
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":524
13444
* self.__obj = NULL
13445
* if self._owned: # <<<<<<<<<<<<<<
13446
* evhttp_connection_free(obj)
13449
if (((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->_owned) {
13451
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":525
13452
* self.__obj = NULL
13454
* evhttp_connection_free(obj) # <<<<<<<<<<<<<<
13458
evhttp_connection_free(__pyx_v_obj);
13466
__Pyx_RefNannyFinishContext();
13469
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":529
12456
13470
* property _obj:
12458
13472
* def __get__(self): # <<<<<<<<<<<<<<
13000
14007
__pyx_r = NULL;
13002
14009
__Pyx_DECREF(__pyx_v_addr);
13003
__Pyx_DECREF((PyObject *)__pyx_v_self);
13004
__Pyx_XGIVEREF(__pyx_r);
13005
__Pyx_RefNannyFinishContext();
13009
/* "/home/denis/work/gevent/gevent/evhttp.pxi":462
14010
__Pyx_XGIVEREF(__pyx_r);
14011
__Pyx_RefNannyFinishContext();
14015
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":566
14016
* return (addr, port)
14018
* def set_local_address(self, char *addr): # <<<<<<<<<<<<<<
14019
* if not self.__obj:
14020
* raise HttpConnectionDeleted
14023
static PyObject *__pyx_pf_6gevent_4core_15http_connection_6set_local_address(PyObject *__pyx_v_self, PyObject *__pyx_arg_addr); /*proto*/
14024
static PyObject *__pyx_pf_6gevent_4core_15http_connection_6set_local_address(PyObject *__pyx_v_self, PyObject *__pyx_arg_addr) {
14025
char *__pyx_v_addr;
14026
PyObject *__pyx_r = NULL;
14028
PyObject *__pyx_t_2 = NULL;
14029
__Pyx_RefNannySetupContext("set_local_address");
14030
assert(__pyx_arg_addr); {
14031
__pyx_v_addr = PyBytes_AsString(__pyx_arg_addr); if (unlikely((!__pyx_v_addr) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 566; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14033
goto __pyx_L4_argument_unpacking_done;
14035
__Pyx_AddTraceback("gevent.core.http_connection.set_local_address");
14036
__Pyx_RefNannyFinishContext();
14038
__pyx_L4_argument_unpacking_done:;
14040
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":567
14042
* def set_local_address(self, char *addr):
14043
* if not self.__obj: # <<<<<<<<<<<<<<
14044
* raise HttpConnectionDeleted
14045
* evhttp_connection_set_local_address(self.__obj, addr)
14047
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj != 0));
14050
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":568
14051
* def set_local_address(self, char *addr):
14052
* if not self.__obj:
14053
* raise HttpConnectionDeleted # <<<<<<<<<<<<<<
14054
* evhttp_connection_set_local_address(self.__obj, addr)
14057
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_38); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14058
__Pyx_GOTREF(__pyx_t_2);
14059
__Pyx_Raise(__pyx_t_2, 0, 0);
14060
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14061
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14066
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":569
14067
* if not self.__obj:
14068
* raise HttpConnectionDeleted
14069
* evhttp_connection_set_local_address(self.__obj, addr) # <<<<<<<<<<<<<<
14071
* def set_timeout(self, int secs):
14073
evhttp_connection_set_local_address(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj, __pyx_v_addr);
14075
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
14078
__Pyx_XDECREF(__pyx_t_2);
14079
__Pyx_AddTraceback("gevent.core.http_connection.set_local_address");
14082
__Pyx_XGIVEREF(__pyx_r);
14083
__Pyx_RefNannyFinishContext();
14087
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":571
14088
* evhttp_connection_set_local_address(self.__obj, addr)
14090
* def set_timeout(self, int secs): # <<<<<<<<<<<<<<
14091
* if not self.__obj:
14092
* raise HttpConnectionDeleted
14095
static PyObject *__pyx_pf_6gevent_4core_15http_connection_7set_timeout(PyObject *__pyx_v_self, PyObject *__pyx_arg_secs); /*proto*/
14096
static PyObject *__pyx_pf_6gevent_4core_15http_connection_7set_timeout(PyObject *__pyx_v_self, PyObject *__pyx_arg_secs) {
14098
PyObject *__pyx_r = NULL;
14100
PyObject *__pyx_t_2 = NULL;
14101
__Pyx_RefNannySetupContext("set_timeout");
14102
assert(__pyx_arg_secs); {
14103
__pyx_v_secs = __Pyx_PyInt_AsInt(__pyx_arg_secs); if (unlikely((__pyx_v_secs == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14105
goto __pyx_L4_argument_unpacking_done;
14107
__Pyx_AddTraceback("gevent.core.http_connection.set_timeout");
14108
__Pyx_RefNannyFinishContext();
14110
__pyx_L4_argument_unpacking_done:;
14112
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":572
14114
* def set_timeout(self, int secs):
14115
* if not self.__obj: # <<<<<<<<<<<<<<
14116
* raise HttpConnectionDeleted
14117
* evhttp_connection_set_timeout(self.__obj, secs)
14119
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj != 0));
14122
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":573
14123
* def set_timeout(self, int secs):
14124
* if not self.__obj:
14125
* raise HttpConnectionDeleted # <<<<<<<<<<<<<<
14126
* evhttp_connection_set_timeout(self.__obj, secs)
14129
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_38); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14130
__Pyx_GOTREF(__pyx_t_2);
14131
__Pyx_Raise(__pyx_t_2, 0, 0);
14132
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14133
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14138
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":574
14139
* if not self.__obj:
14140
* raise HttpConnectionDeleted
14141
* evhttp_connection_set_timeout(self.__obj, secs) # <<<<<<<<<<<<<<
14143
* def set_retries(self, int retry_max):
14145
evhttp_connection_set_timeout(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj, __pyx_v_secs);
14147
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
14150
__Pyx_XDECREF(__pyx_t_2);
14151
__Pyx_AddTraceback("gevent.core.http_connection.set_timeout");
14154
__Pyx_XGIVEREF(__pyx_r);
14155
__Pyx_RefNannyFinishContext();
14159
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":576
14160
* evhttp_connection_set_timeout(self.__obj, secs)
14162
* def set_retries(self, int retry_max): # <<<<<<<<<<<<<<
14163
* if not self.__obj:
14164
* raise HttpConnectionDeleted
14167
static PyObject *__pyx_pf_6gevent_4core_15http_connection_8set_retries(PyObject *__pyx_v_self, PyObject *__pyx_arg_retry_max); /*proto*/
14168
static PyObject *__pyx_pf_6gevent_4core_15http_connection_8set_retries(PyObject *__pyx_v_self, PyObject *__pyx_arg_retry_max) {
14169
int __pyx_v_retry_max;
14170
PyObject *__pyx_r = NULL;
14172
PyObject *__pyx_t_2 = NULL;
14173
__Pyx_RefNannySetupContext("set_retries");
14174
assert(__pyx_arg_retry_max); {
14175
__pyx_v_retry_max = __Pyx_PyInt_AsInt(__pyx_arg_retry_max); if (unlikely((__pyx_v_retry_max == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14177
goto __pyx_L4_argument_unpacking_done;
14179
__Pyx_AddTraceback("gevent.core.http_connection.set_retries");
14180
__Pyx_RefNannyFinishContext();
14182
__pyx_L4_argument_unpacking_done:;
14184
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":577
14186
* def set_retries(self, int retry_max):
14187
* if not self.__obj: # <<<<<<<<<<<<<<
14188
* raise HttpConnectionDeleted
14189
* evhttp_connection_set_retries(self.__obj, retry_max)
14191
__pyx_t_1 = (!(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj != 0));
14194
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":578
14195
* def set_retries(self, int retry_max):
14196
* if not self.__obj:
14197
* raise HttpConnectionDeleted # <<<<<<<<<<<<<<
14198
* evhttp_connection_set_retries(self.__obj, retry_max)
14201
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s_38); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14202
__Pyx_GOTREF(__pyx_t_2);
14203
__Pyx_Raise(__pyx_t_2, 0, 0);
14204
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14205
{__pyx_filename = __pyx_f[1]; __pyx_lineno = 578; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14210
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":579
14211
* if not self.__obj:
14212
* raise HttpConnectionDeleted
14213
* evhttp_connection_set_retries(self.__obj, retry_max) # <<<<<<<<<<<<<<
14215
* def make_request(self, http_request_client req, int type, char* uri):
14217
evhttp_connection_set_retries(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj, __pyx_v_retry_max);
14219
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
14222
__Pyx_XDECREF(__pyx_t_2);
14223
__Pyx_AddTraceback("gevent.core.http_connection.set_retries");
14226
__Pyx_XGIVEREF(__pyx_r);
14227
__Pyx_RefNannyFinishContext();
14231
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":581
14232
* evhttp_connection_set_retries(self.__obj, retry_max)
14234
* def make_request(self, http_request_client req, int type, char* uri): # <<<<<<<<<<<<<<
14236
* cdef int result = evhttp_make_request(self.__obj, req.__obj, type, uri)
14239
static PyObject *__pyx_pf_6gevent_4core_15http_connection_9make_request(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
14240
static PyObject *__pyx_pf_6gevent_4core_15http_connection_9make_request(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
14241
struct __pyx_obj_6gevent_4core_http_request_client *__pyx_v_req = 0;
14244
int __pyx_v_result;
14245
PyObject *__pyx_r = NULL;
14247
PyObject *__pyx_t_2 = NULL;
14248
PyObject *__pyx_t_3 = NULL;
14249
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__req,&__pyx_n_s__type,&__pyx_n_s__uri,0};
14250
__Pyx_RefNannySetupContext("make_request");
14251
if (unlikely(__pyx_kwds)) {
14252
Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
14253
PyObject* values[3] = {0,0,0};
14254
switch (PyTuple_GET_SIZE(__pyx_args)) {
14255
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
14256
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
14257
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
14259
default: goto __pyx_L5_argtuple_error;
14261
switch (PyTuple_GET_SIZE(__pyx_args)) {
14263
values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__req);
14264
if (likely(values[0])) kw_args--;
14265
else goto __pyx_L5_argtuple_error;
14267
values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__type);
14268
if (likely(values[1])) kw_args--;
14270
__Pyx_RaiseArgtupleInvalid("make_request", 1, 3, 3, 1); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14273
values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__uri);
14274
if (likely(values[2])) kw_args--;
14276
__Pyx_RaiseArgtupleInvalid("make_request", 1, 3, 3, 2); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14279
if (unlikely(kw_args > 0)) {
14280
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "make_request") < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14282
__pyx_v_req = ((struct __pyx_obj_6gevent_4core_http_request_client *)values[0]);
14283
__pyx_v_type = __Pyx_PyInt_AsInt(values[1]); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14284
__pyx_v_uri = PyBytes_AsString(values[2]); if (unlikely((!__pyx_v_uri) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14285
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
14286
goto __pyx_L5_argtuple_error;
14288
__pyx_v_req = ((struct __pyx_obj_6gevent_4core_http_request_client *)PyTuple_GET_ITEM(__pyx_args, 0));
14289
__pyx_v_type = __Pyx_PyInt_AsInt(PyTuple_GET_ITEM(__pyx_args, 1)); if (unlikely((__pyx_v_type == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14290
__pyx_v_uri = PyBytes_AsString(PyTuple_GET_ITEM(__pyx_args, 2)); if (unlikely((!__pyx_v_uri) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14292
goto __pyx_L4_argument_unpacking_done;
14293
__pyx_L5_argtuple_error:;
14294
__Pyx_RaiseArgtupleInvalid("make_request", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
14296
__Pyx_AddTraceback("gevent.core.http_connection.make_request");
14297
__Pyx_RefNannyFinishContext();
14299
__pyx_L4_argument_unpacking_done:;
14300
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_req), __pyx_ptype_6gevent_4core_http_request_client, 1, "req", 0))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 581; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14302
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":582
14304
* def make_request(self, http_request_client req, int type, char* uri):
14305
* req._owned = 0 # <<<<<<<<<<<<<<
14306
* cdef int result = evhttp_make_request(self.__obj, req.__obj, type, uri)
14309
__pyx_v_req->_owned = 0;
14311
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":583
14312
* def make_request(self, http_request_client req, int type, char* uri):
14314
* cdef int result = evhttp_make_request(self.__obj, req.__obj, type, uri) # <<<<<<<<<<<<<<
14318
__pyx_v_result = evhttp_make_request(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->__pyx___obj, __pyx_v_req->__pyx_base.__pyx___obj, __pyx_v_type, __pyx_v_uri);
14320
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":584
14322
* cdef int result = evhttp_make_request(self.__obj, req.__obj, type, uri)
14323
* if result != 0: # <<<<<<<<<<<<<<
14327
__pyx_t_1 = (__pyx_v_result != 0);
14330
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":585
14331
* cdef int result = evhttp_make_request(self.__obj, req.__obj, type, uri)
14333
* req.detach() # <<<<<<<<<<<<<<
14337
__pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_req), __pyx_n_s__detach); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14338
__Pyx_GOTREF(__pyx_t_2);
14339
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14340
__Pyx_GOTREF(__pyx_t_3);
14341
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14342
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14347
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":586
14350
* return result # <<<<<<<<<<<<<<
14354
__Pyx_XDECREF(__pyx_r);
14355
__pyx_t_3 = PyInt_FromLong(__pyx_v_result); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14356
__Pyx_GOTREF(__pyx_t_3);
14357
__pyx_r = __pyx_t_3;
14361
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
14364
__Pyx_XDECREF(__pyx_t_2);
14365
__Pyx_XDECREF(__pyx_t_3);
14366
__Pyx_AddTraceback("gevent.core.http_connection.make_request");
14369
__Pyx_XGIVEREF(__pyx_r);
14370
__Pyx_RefNannyFinishContext();
14374
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":508
14376
* cdef evhttp_connection* __obj
14377
* cdef public int _owned # <<<<<<<<<<<<<<
14379
* def __init__(self, size_t obj, owned=0):
14382
static PyObject *__pyx_pf_6gevent_4core_15http_connection_6_owned___get__(PyObject *__pyx_v_self); /*proto*/
14383
static PyObject *__pyx_pf_6gevent_4core_15http_connection_6_owned___get__(PyObject *__pyx_v_self) {
14384
PyObject *__pyx_r = NULL;
14385
PyObject *__pyx_t_1 = NULL;
14386
__Pyx_RefNannySetupContext("__get__");
14387
__Pyx_XDECREF(__pyx_r);
14388
__pyx_t_1 = PyInt_FromLong(((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->_owned); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14389
__Pyx_GOTREF(__pyx_t_1);
14390
__pyx_r = __pyx_t_1;
14394
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
14397
__Pyx_XDECREF(__pyx_t_1);
14398
__Pyx_AddTraceback("gevent.core.http_connection._owned.__get__");
14401
__Pyx_XGIVEREF(__pyx_r);
14402
__Pyx_RefNannyFinishContext();
14406
static int __pyx_pf_6gevent_4core_15http_connection_6_owned_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
14407
static int __pyx_pf_6gevent_4core_15http_connection_6_owned_1__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
14410
__Pyx_RefNannySetupContext("__set__");
14411
__pyx_t_1 = __Pyx_PyInt_AsInt(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
14412
((struct __pyx_obj_6gevent_4core_http_connection *)__pyx_v_self)->_owned = __pyx_t_1;
14417
__Pyx_AddTraceback("gevent.core.http_connection._owned.__set__");
14420
__Pyx_RefNannyFinishContext();
14424
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":589
14427
* cdef void _http_request_cb_handler(evhttp_request* c_request, void *arg) with gil: # <<<<<<<<<<<<<<
14432
static void __pyx_f_6gevent_4core__http_request_cb_handler(struct evhttp_request *__pyx_v_c_request, void *__pyx_v_arg) {
14433
struct __pyx_obj_6gevent_4core_http_request_client *__pyx_v_obj = 0;
14435
PyObject *__pyx_t_2 = NULL;
14436
PyObject *__pyx_t_3 = NULL;
14437
PyObject *__pyx_t_4 = NULL;
14438
PyObject *__pyx_t_5 = NULL;
14439
PyObject *__pyx_t_6 = NULL;
14441
PyGILState_STATE _save = PyGILState_Ensure();
14443
__Pyx_RefNannySetupContext("_http_request_cb_handler");
14445
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":590
14447
* cdef void _http_request_cb_handler(evhttp_request* c_request, void *arg) with gil:
14448
* if arg == NULL: # <<<<<<<<<<<<<<
14450
* cdef http_request_client obj = <http_request_client>(arg)
14452
__pyx_t_1 = (__pyx_v_arg == NULL);
14455
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":591
14456
* cdef void _http_request_cb_handler(evhttp_request* c_request, void *arg) with gil:
14458
* return # <<<<<<<<<<<<<<
14459
* cdef http_request_client obj = <http_request_client>(arg)
14467
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":592
14470
* cdef http_request_client obj = <http_request_client>(arg) # <<<<<<<<<<<<<<
14472
* if obj.__obj != NULL:
14474
__Pyx_INCREF(((PyObject *)((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_arg)));
14475
__pyx_v_obj = ((struct __pyx_obj_6gevent_4core_http_request_client *)__pyx_v_arg);
14477
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":593
14479
* cdef http_request_client obj = <http_request_client>(arg)
14480
* try: # <<<<<<<<<<<<<<
14481
* if obj.__obj != NULL:
14482
* if obj.__obj != c_request:
14486
PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
14487
__Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
14488
__Pyx_XGOTREF(__pyx_save_exc_type);
14489
__Pyx_XGOTREF(__pyx_save_exc_value);
14490
__Pyx_XGOTREF(__pyx_save_exc_tb);
14493
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":594
14494
* cdef http_request_client obj = <http_request_client>(arg)
14496
* if obj.__obj != NULL: # <<<<<<<<<<<<<<
14497
* if obj.__obj != c_request:
14498
* # sometimes this happens, don't know why
14500
__pyx_t_1 = (__pyx_v_obj->__pyx_base.__pyx___obj != NULL);
14503
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":595
14505
* if obj.__obj != NULL:
14506
* if obj.__obj != c_request: # <<<<<<<<<<<<<<
14507
* # sometimes this happens, don't know why
14508
* sys.stderr.write("Internal error in evhttp\n")
14510
__pyx_t_1 = (__pyx_v_obj->__pyx_base.__pyx___obj != __pyx_v_c_request);
14513
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":597
14514
* if obj.__obj != c_request:
14515
* # sometimes this happens, don't know why
14516
* sys.stderr.write("Internal error in evhttp\n") # <<<<<<<<<<<<<<
14517
* if obj.callback is not None:
14518
* # preferring c_request to obj.__obj because the latter sometimes causes crashes
14520
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14521
__Pyx_GOTREF(__pyx_t_2);
14522
__pyx_t_3 = PyObject_GetAttr(__pyx_t_2, __pyx_n_s__stderr); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14523
__Pyx_GOTREF(__pyx_t_3);
14524
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14525
__pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__write); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14526
__Pyx_GOTREF(__pyx_t_2);
14527
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14528
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_k_tuple_41), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14529
__Pyx_GOTREF(__pyx_t_3);
14530
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14531
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14536
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":598
14537
* # sometimes this happens, don't know why
14538
* sys.stderr.write("Internal error in evhttp\n")
14539
* if obj.callback is not None: # <<<<<<<<<<<<<<
14540
* # preferring c_request to obj.__obj because the latter sometimes causes crashes
14541
* obj.callback(http_request_client(obj=<size_t>c_request))
14543
__pyx_t_1 = (__pyx_v_obj->callback != Py_None);
14546
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":600
14547
* if obj.callback is not None:
14548
* # preferring c_request to obj.__obj because the latter sometimes causes crashes
14549
* obj.callback(http_request_client(obj=<size_t>c_request)) # <<<<<<<<<<<<<<
14553
__pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14554
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
14555
__pyx_t_2 = __Pyx_PyInt_FromSize_t(((size_t)__pyx_v_c_request)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14556
__Pyx_GOTREF(__pyx_t_2);
14557
if (PyDict_SetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__obj), __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14558
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14559
__pyx_t_2 = PyEval_CallObjectWithKeywords(((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_http_request_client)), ((PyObject *)__pyx_empty_tuple), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14560
__Pyx_GOTREF(__pyx_t_2);
14561
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
14562
__pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14563
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
14564
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
14565
__Pyx_GIVEREF(__pyx_t_2);
14567
__pyx_t_2 = PyObject_Call(__pyx_v_obj->callback, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14568
__Pyx_GOTREF(__pyx_t_2);
14569
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
14570
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14575
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":601
14576
* # preferring c_request to obj.__obj because the latter sometimes causes crashes
14577
* obj.callback(http_request_client(obj=<size_t>c_request))
14578
* obj.detach() # <<<<<<<<<<<<<<
14580
* traceback.print_exc()
14582
__pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_obj), __pyx_n_s__detach); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14583
__Pyx_GOTREF(__pyx_t_2);
14584
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L7_error;}
14585
__Pyx_GOTREF(__pyx_t_3);
14586
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14587
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14592
__Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
14593
__Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
14594
__Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
14595
goto __pyx_L14_try_end;
14597
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
14598
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14600
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":602
14601
* obj.callback(http_request_client(obj=<size_t>c_request))
14603
* except: # <<<<<<<<<<<<<<
14604
* traceback.print_exc()
14608
__Pyx_AddTraceback("gevent.core._http_request_cb_handler");
14609
if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;}
14610
__Pyx_GOTREF(__pyx_t_3);
14611
__Pyx_GOTREF(__pyx_t_2);
14612
__Pyx_GOTREF(__pyx_t_4);
14614
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":603
14617
* traceback.print_exc() # <<<<<<<<<<<<<<
14619
* sys.stderr.write('Failed to execute callback for evhttp request.\n')
14621
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__traceback); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;}
14622
__Pyx_GOTREF(__pyx_t_5);
14623
__pyx_t_6 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__print_exc); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;}
14624
__Pyx_GOTREF(__pyx_t_6);
14625
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14626
__pyx_t_5 = PyObject_Call(__pyx_t_6, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L9_except_error;}
14627
__Pyx_GOTREF(__pyx_t_5);
14628
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
14629
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14631
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":604
14633
* traceback.print_exc()
14634
* try: # <<<<<<<<<<<<<<
14635
* sys.stderr.write('Failed to execute callback for evhttp request.\n')
14639
PyObject *__pyx_save_exc_type, *__pyx_save_exc_value, *__pyx_save_exc_tb;
14640
__Pyx_ExceptionSave(&__pyx_save_exc_type, &__pyx_save_exc_value, &__pyx_save_exc_tb);
14641
__Pyx_XGOTREF(__pyx_save_exc_type);
14642
__Pyx_XGOTREF(__pyx_save_exc_value);
14643
__Pyx_XGOTREF(__pyx_save_exc_tb);
14646
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":605
14647
* traceback.print_exc()
14649
* sys.stderr.write('Failed to execute callback for evhttp request.\n') # <<<<<<<<<<<<<<
14653
__pyx_t_5 = __Pyx_GetName(__pyx_m, __pyx_n_s__sys); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L20_error;}
14654
__Pyx_GOTREF(__pyx_t_5);
14655
__pyx_t_6 = PyObject_GetAttr(__pyx_t_5, __pyx_n_s__stderr); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L20_error;}
14656
__Pyx_GOTREF(__pyx_t_6);
14657
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14658
__pyx_t_5 = PyObject_GetAttr(__pyx_t_6, __pyx_n_s__write); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L20_error;}
14659
__Pyx_GOTREF(__pyx_t_5);
14660
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
14661
__pyx_t_6 = PyObject_Call(__pyx_t_5, ((PyObject *)__pyx_k_tuple_43), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L20_error;}
14662
__Pyx_GOTREF(__pyx_t_6);
14663
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
14664
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
14666
__Pyx_XDECREF(__pyx_save_exc_type); __pyx_save_exc_type = 0;
14667
__Pyx_XDECREF(__pyx_save_exc_value); __pyx_save_exc_value = 0;
14668
__Pyx_XDECREF(__pyx_save_exc_tb); __pyx_save_exc_tb = 0;
14669
goto __pyx_L27_try_end;
14671
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
14672
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
14674
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":606
14676
* sys.stderr.write('Failed to execute callback for evhttp request.\n')
14677
* except: # <<<<<<<<<<<<<<
14682
PyErr_Restore(0,0,0);
14683
goto __pyx_L21_exception_handled;
14685
__pyx_L21_exception_handled:;
14686
__Pyx_XGIVEREF(__pyx_save_exc_type);
14687
__Pyx_XGIVEREF(__pyx_save_exc_value);
14688
__Pyx_XGIVEREF(__pyx_save_exc_tb);
14689
__Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
14690
__pyx_L27_try_end:;
14692
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
14693
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
14694
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
14695
goto __pyx_L8_exception_handled;
14697
__pyx_L9_except_error:;
14698
__Pyx_XGIVEREF(__pyx_save_exc_type);
14699
__Pyx_XGIVEREF(__pyx_save_exc_value);
14700
__Pyx_XGIVEREF(__pyx_save_exc_tb);
14701
__Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
14703
__pyx_L8_exception_handled:;
14704
__Pyx_XGIVEREF(__pyx_save_exc_type);
14705
__Pyx_XGIVEREF(__pyx_save_exc_value);
14706
__Pyx_XGIVEREF(__pyx_save_exc_tb);
14707
__Pyx_ExceptionReset(__pyx_save_exc_type, __pyx_save_exc_value, __pyx_save_exc_tb);
14708
__pyx_L14_try_end:;
14712
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":609
14715
* obj._delref() # <<<<<<<<<<<<<<
14721
PyObject *__pyx_exc_type, *__pyx_exc_value, *__pyx_exc_tb;
14722
int __pyx_exc_lineno;
14723
__pyx_exc_type = 0; __pyx_exc_value = 0; __pyx_exc_tb = 0; __pyx_exc_lineno = 0;
14724
__pyx_why = 0; goto __pyx_L6;
14727
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
14728
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
14729
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
14730
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
14731
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
14732
__Pyx_ErrFetch(&__pyx_exc_type, &__pyx_exc_value, &__pyx_exc_tb);
14733
__pyx_exc_lineno = __pyx_lineno;
14737
__pyx_t_4 = ((struct __pyx_vtabstruct_6gevent_4core_http_request_client *)__pyx_v_obj->__pyx_vtab)->_delref(__pyx_v_obj); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L28_error;}
14738
__Pyx_GOTREF(__pyx_t_4);
14739
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
14742
if (__pyx_why == 4) {
14743
Py_XDECREF(__pyx_exc_type);
14744
Py_XDECREF(__pyx_exc_value);
14745
Py_XDECREF(__pyx_exc_tb);
14747
goto __pyx_L1_error;
14749
switch (__pyx_why) {
14751
__Pyx_ErrRestore(__pyx_exc_type, __pyx_exc_value, __pyx_exc_tb);
14752
__pyx_lineno = __pyx_exc_lineno;
14753
__pyx_exc_type = 0;
14754
__pyx_exc_value = 0;
14756
goto __pyx_L1_error;
14763
__Pyx_XDECREF(__pyx_t_2);
14764
__Pyx_XDECREF(__pyx_t_3);
14765
__Pyx_XDECREF(__pyx_t_4);
14766
__Pyx_XDECREF(__pyx_t_5);
14767
__Pyx_XDECREF(__pyx_t_6);
14768
__Pyx_WriteUnraisable("gevent.core._http_request_cb_handler");
14770
__Pyx_XDECREF((PyObject *)__pyx_v_obj);
14771
__Pyx_RefNannyFinishContext();
14773
PyGILState_Release(_save);
14777
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":612
13012
14780
* cdef void _http_cb_handler(evhttp_request* request, void *arg) with gil: # <<<<<<<<<<<<<<
15742
17648
tmp = ((PyObject*)p->_output_buffer);
15743
17649
p->_output_buffer = Py_None; Py_INCREF(Py_None);
15744
17650
Py_XDECREF(tmp);
17654
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base__obj(PyObject *o, void *x) {
17655
return __pyx_pf_6gevent_4core_17http_request_base_4_obj___get__(o);
17658
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_connection(PyObject *o, void *x) {
17659
return __pyx_pf_6gevent_4core_17http_request_base_10connection___get__(o);
17662
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_remote_host(PyObject *o, void *x) {
17663
return __pyx_pf_6gevent_4core_17http_request_base_11remote_host___get__(o);
17666
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_remote_port(PyObject *o, void *x) {
17667
return __pyx_pf_6gevent_4core_17http_request_base_11remote_port___get__(o);
17670
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_remote(PyObject *o, void *x) {
17671
return __pyx_pf_6gevent_4core_17http_request_base_6remote___get__(o);
17674
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_kind(PyObject *o, void *x) {
17675
return __pyx_pf_6gevent_4core_17http_request_base_4kind___get__(o);
17678
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_type(PyObject *o, void *x) {
17679
return __pyx_pf_6gevent_4core_17http_request_base_4type___get__(o);
17682
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_typestr(PyObject *o, void *x) {
17683
return __pyx_pf_6gevent_4core_17http_request_base_7typestr___get__(o);
17686
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_uri(PyObject *o, void *x) {
17687
return __pyx_pf_6gevent_4core_17http_request_base_3uri___get__(o);
17690
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_major(PyObject *o, void *x) {
17691
return __pyx_pf_6gevent_4core_17http_request_base_5major___get__(o);
17694
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_minor(PyObject *o, void *x) {
17695
return __pyx_pf_6gevent_4core_17http_request_base_5minor___get__(o);
17698
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_version(PyObject *o, void *x) {
17699
return __pyx_pf_6gevent_4core_17http_request_base_7version___get__(o);
17702
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_response_code(PyObject *o, void *x) {
17703
return __pyx_pf_6gevent_4core_17http_request_base_13response_code___get__(o);
17706
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_response_code_line(PyObject *o, void *x) {
17707
return __pyx_pf_6gevent_4core_17http_request_base_18response_code_line___get__(o);
17710
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_response(PyObject *o, void *x) {
17711
return __pyx_pf_6gevent_4core_17http_request_base_8response___get__(o);
17714
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_chunked(PyObject *o, void *x) {
17715
return __pyx_pf_6gevent_4core_17http_request_base_7chunked___get__(o);
17718
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_input_buffer(PyObject *o, void *x) {
17719
return __pyx_pf_6gevent_4core_17http_request_base_12input_buffer___get__(o);
17722
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base_output_buffer(PyObject *o, void *x) {
17723
return __pyx_pf_6gevent_4core_17http_request_base_13output_buffer___get__(o);
17726
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base__input_buffer(PyObject *o, void *x) {
17727
return __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer___get__(o);
17730
static int __pyx_setprop_6gevent_4core_17http_request_base__input_buffer(PyObject *o, PyObject *v, void *x) {
17732
return __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer_1__set__(o, v);
17735
return __pyx_pf_6gevent_4core_17http_request_base_13_input_buffer_2__del__(o);
17739
static PyObject *__pyx_getprop_6gevent_4core_17http_request_base__output_buffer(PyObject *o, void *x) {
17740
return __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer___get__(o);
17743
static int __pyx_setprop_6gevent_4core_17http_request_base__output_buffer(PyObject *o, PyObject *v, void *x) {
17745
return __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer_1__set__(o, v);
17748
return __pyx_pf_6gevent_4core_17http_request_base_14_output_buffer_2__del__(o);
17752
static PyMethodDef __pyx_methods_6gevent_4core_http_request_base[] = {
17753
{__Pyx_NAMESTR("detach"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_2detach, METH_NOARGS, __Pyx_DOCSTR(0)},
17754
{__Pyx_NAMESTR("_format"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_3_format, METH_NOARGS, __Pyx_DOCSTR(0)},
17755
{__Pyx_NAMESTR("get_input_headers"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_6get_input_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
17756
{__Pyx_NAMESTR("find_input_header"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_7find_input_header, METH_O, __Pyx_DOCSTR(0)},
17757
{__Pyx_NAMESTR("find_output_header"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_8find_output_header, METH_O, __Pyx_DOCSTR(0)},
17758
{__Pyx_NAMESTR("add_input_header"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_9add_input_header, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
17759
{__Pyx_NAMESTR("add_output_header"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_10add_output_header, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
17760
{__Pyx_NAMESTR("remove_input_header"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_11remove_input_header, METH_O, __Pyx_DOCSTR(__pyx_doc_6gevent_4core_17http_request_base_11remove_input_header)},
17761
{__Pyx_NAMESTR("remove_output_header"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_12remove_output_header, METH_O, __Pyx_DOCSTR(__pyx_doc_6gevent_4core_17http_request_base_12remove_output_header)},
17762
{__Pyx_NAMESTR("clear_input_headers"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_13clear_input_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
17763
{__Pyx_NAMESTR("clear_output_headers"), (PyCFunction)__pyx_pf_6gevent_4core_17http_request_base_14clear_output_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
17767
static struct PyGetSetDef __pyx_getsets_6gevent_4core_http_request_base[] = {
17768
{(char *)"_obj", __pyx_getprop_6gevent_4core_17http_request_base__obj, 0, 0, 0},
17769
{(char *)"connection", __pyx_getprop_6gevent_4core_17http_request_base_connection, 0, 0, 0},
17770
{(char *)"remote_host", __pyx_getprop_6gevent_4core_17http_request_base_remote_host, 0, 0, 0},
17771
{(char *)"remote_port", __pyx_getprop_6gevent_4core_17http_request_base_remote_port, 0, 0, 0},
17772
{(char *)"remote", __pyx_getprop_6gevent_4core_17http_request_base_remote, 0, 0, 0},
17773
{(char *)"kind", __pyx_getprop_6gevent_4core_17http_request_base_kind, 0, 0, 0},
17774
{(char *)"type", __pyx_getprop_6gevent_4core_17http_request_base_type, 0, 0, 0},
17775
{(char *)"typestr", __pyx_getprop_6gevent_4core_17http_request_base_typestr, 0, 0, 0},
17776
{(char *)"uri", __pyx_getprop_6gevent_4core_17http_request_base_uri, 0, 0, 0},
17777
{(char *)"major", __pyx_getprop_6gevent_4core_17http_request_base_major, 0, 0, 0},
17778
{(char *)"minor", __pyx_getprop_6gevent_4core_17http_request_base_minor, 0, 0, 0},
17779
{(char *)"version", __pyx_getprop_6gevent_4core_17http_request_base_version, 0, 0, 0},
17780
{(char *)"response_code", __pyx_getprop_6gevent_4core_17http_request_base_response_code, 0, 0, 0},
17781
{(char *)"response_code_line", __pyx_getprop_6gevent_4core_17http_request_base_response_code_line, 0, 0, 0},
17782
{(char *)"response", __pyx_getprop_6gevent_4core_17http_request_base_response, 0, 0, 0},
17783
{(char *)"chunked", __pyx_getprop_6gevent_4core_17http_request_base_chunked, 0, 0, 0},
17784
{(char *)"input_buffer", __pyx_getprop_6gevent_4core_17http_request_base_input_buffer, 0, 0, 0},
17785
{(char *)"output_buffer", __pyx_getprop_6gevent_4core_17http_request_base_output_buffer, 0, 0, 0},
17786
{(char *)"_input_buffer", __pyx_getprop_6gevent_4core_17http_request_base__input_buffer, __pyx_setprop_6gevent_4core_17http_request_base__input_buffer, 0, 0},
17787
{(char *)"_output_buffer", __pyx_getprop_6gevent_4core_17http_request_base__output_buffer, __pyx_setprop_6gevent_4core_17http_request_base__output_buffer, 0, 0},
17791
static PyNumberMethods __pyx_tp_as_number_http_request_base = {
17795
#if PY_MAJOR_VERSION < 3
17798
0, /*nb_remainder*/
17804
__pyx_pf_6gevent_4core_17http_request_base_1__nonzero__, /*nb_nonzero*/
17811
#if PY_MAJOR_VERSION < 3
17815
#if PY_MAJOR_VERSION < 3
17821
#if PY_MAJOR_VERSION < 3
17824
#if PY_MAJOR_VERSION < 3
17827
0, /*nb_inplace_add*/
17828
0, /*nb_inplace_subtract*/
17829
0, /*nb_inplace_multiply*/
17830
#if PY_MAJOR_VERSION < 3
17831
0, /*nb_inplace_divide*/
17833
0, /*nb_inplace_remainder*/
17834
0, /*nb_inplace_power*/
17835
0, /*nb_inplace_lshift*/
17836
0, /*nb_inplace_rshift*/
17837
0, /*nb_inplace_and*/
17838
0, /*nb_inplace_xor*/
17839
0, /*nb_inplace_or*/
17840
0, /*nb_floor_divide*/
17841
0, /*nb_true_divide*/
17842
0, /*nb_inplace_floor_divide*/
17843
0, /*nb_inplace_true_divide*/
17844
#if PY_VERSION_HEX >= 0x02050000
17849
static PySequenceMethods __pyx_tp_as_sequence_http_request_base = {
17856
0, /*sq_ass_slice*/
17858
0, /*sq_inplace_concat*/
17859
0, /*sq_inplace_repeat*/
17862
static PyMappingMethods __pyx_tp_as_mapping_http_request_base = {
17864
0, /*mp_subscript*/
17865
0, /*mp_ass_subscript*/
17868
static PyBufferProcs __pyx_tp_as_buffer_http_request_base = {
17869
#if PY_MAJOR_VERSION < 3
17870
0, /*bf_getreadbuffer*/
17872
#if PY_MAJOR_VERSION < 3
17873
0, /*bf_getwritebuffer*/
17875
#if PY_MAJOR_VERSION < 3
17876
0, /*bf_getsegcount*/
17878
#if PY_MAJOR_VERSION < 3
17879
0, /*bf_getcharbuffer*/
17881
#if PY_VERSION_HEX >= 0x02060000
17882
0, /*bf_getbuffer*/
17884
#if PY_VERSION_HEX >= 0x02060000
17885
0, /*bf_releasebuffer*/
17889
static PyTypeObject __pyx_type_6gevent_4core_http_request_base = {
17890
PyVarObject_HEAD_INIT(0, 0)
17891
__Pyx_NAMESTR("gevent.core.http_request_base"), /*tp_name*/
17892
sizeof(struct __pyx_obj_6gevent_4core_http_request_base), /*tp_basicsize*/
17894
__pyx_tp_dealloc_6gevent_4core_http_request_base, /*tp_dealloc*/
17898
#if PY_MAJOR_VERSION < 3
17903
__pyx_pf_6gevent_4core_17http_request_base_5__repr__, /*tp_repr*/
17904
&__pyx_tp_as_number_http_request_base, /*tp_as_number*/
17905
&__pyx_tp_as_sequence_http_request_base, /*tp_as_sequence*/
17906
&__pyx_tp_as_mapping_http_request_base, /*tp_as_mapping*/
17909
__pyx_pf_6gevent_4core_17http_request_base_4__str__, /*tp_str*/
17912
&__pyx_tp_as_buffer_http_request_base, /*tp_as_buffer*/
17913
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
17914
__Pyx_DOCSTR("Wrapper around libevent's :class:`evhttp_request` structure."), /*tp_doc*/
17915
__pyx_tp_traverse_6gevent_4core_http_request_base, /*tp_traverse*/
17916
__pyx_tp_clear_6gevent_4core_http_request_base, /*tp_clear*/
17917
0, /*tp_richcompare*/
17918
0, /*tp_weaklistoffset*/
17921
__pyx_methods_6gevent_4core_http_request_base, /*tp_methods*/
17923
__pyx_getsets_6gevent_4core_http_request_base, /*tp_getset*/
17926
0, /*tp_descr_get*/
17927
0, /*tp_descr_set*/
17928
0, /*tp_dictoffset*/
17929
__pyx_pf_6gevent_4core_17http_request_base___init__, /*tp_init*/
17931
__pyx_tp_new_6gevent_4core_http_request_base, /*tp_new*/
17937
0, /*tp_subclasses*/
17940
#if PY_VERSION_HEX >= 0x02060000
17941
0, /*tp_version_tag*/
17945
static PyObject *__pyx_tp_new_6gevent_4core_http_request(PyTypeObject *t, PyObject *a, PyObject *k) {
17946
struct __pyx_obj_6gevent_4core_http_request *p;
17947
PyObject *o = __pyx_tp_new_6gevent_4core_http_request_base(t, a, k);
17949
p = ((struct __pyx_obj_6gevent_4core_http_request *)o);
17950
p->default_response_headers = Py_None; Py_INCREF(Py_None);
17954
static void __pyx_tp_dealloc_6gevent_4core_http_request(PyObject *o) {
17955
struct __pyx_obj_6gevent_4core_http_request *p = (struct __pyx_obj_6gevent_4core_http_request *)o;
17957
PyObject *etype, *eval, *etb;
17958
PyErr_Fetch(&etype, &eval, &etb);
17960
__pyx_pf_6gevent_4core_12http_request_1__dealloc__(o);
17961
if (PyErr_Occurred()) PyErr_WriteUnraisable(o);
17963
PyErr_Restore(etype, eval, etb);
17965
Py_XDECREF(p->default_response_headers);
17966
__pyx_tp_dealloc_6gevent_4core_http_request_base(o);
17969
static int __pyx_tp_traverse_6gevent_4core_http_request(PyObject *o, visitproc v, void *a) {
17971
struct __pyx_obj_6gevent_4core_http_request *p = (struct __pyx_obj_6gevent_4core_http_request *)o;
17972
e = __pyx_tp_traverse_6gevent_4core_http_request_base(o, v, a); if (e) return e;
17973
if (p->default_response_headers) {
17974
e = (*v)(p->default_response_headers, a); if (e) return e;
17979
static int __pyx_tp_clear_6gevent_4core_http_request(PyObject *o) {
17980
struct __pyx_obj_6gevent_4core_http_request *p = (struct __pyx_obj_6gevent_4core_http_request *)o;
17982
__pyx_tp_clear_6gevent_4core_http_request_base(o);
15745
17983
tmp = ((PyObject*)p->default_response_headers);
15746
17984
p->default_response_headers = Py_None; Py_INCREF(Py_None);
15747
17985
Py_XDECREF(tmp);
15751
static PyObject *__pyx_getprop_6gevent_4core_12http_request__obj(PyObject *o, void *x) {
15752
return __pyx_pf_6gevent_4core_12http_request_4_obj___get__(o);
15755
static PyObject *__pyx_getprop_6gevent_4core_12http_request_connection(PyObject *o, void *x) {
15756
return __pyx_pf_6gevent_4core_12http_request_10connection___get__(o);
15759
static PyObject *__pyx_getprop_6gevent_4core_12http_request_remote_host(PyObject *o, void *x) {
15760
return __pyx_pf_6gevent_4core_12http_request_11remote_host___get__(o);
15763
static PyObject *__pyx_getprop_6gevent_4core_12http_request_remote_port(PyObject *o, void *x) {
15764
return __pyx_pf_6gevent_4core_12http_request_11remote_port___get__(o);
15767
static PyObject *__pyx_getprop_6gevent_4core_12http_request_remote(PyObject *o, void *x) {
15768
return __pyx_pf_6gevent_4core_12http_request_6remote___get__(o);
15771
static PyObject *__pyx_getprop_6gevent_4core_12http_request_kind(PyObject *o, void *x) {
15772
return __pyx_pf_6gevent_4core_12http_request_4kind___get__(o);
15775
static PyObject *__pyx_getprop_6gevent_4core_12http_request_type(PyObject *o, void *x) {
15776
return __pyx_pf_6gevent_4core_12http_request_4type___get__(o);
15779
static PyObject *__pyx_getprop_6gevent_4core_12http_request_typestr(PyObject *o, void *x) {
15780
return __pyx_pf_6gevent_4core_12http_request_7typestr___get__(o);
15783
static PyObject *__pyx_getprop_6gevent_4core_12http_request_uri(PyObject *o, void *x) {
15784
return __pyx_pf_6gevent_4core_12http_request_3uri___get__(o);
15787
static PyObject *__pyx_getprop_6gevent_4core_12http_request_major(PyObject *o, void *x) {
15788
return __pyx_pf_6gevent_4core_12http_request_5major___get__(o);
15791
static PyObject *__pyx_getprop_6gevent_4core_12http_request_minor(PyObject *o, void *x) {
15792
return __pyx_pf_6gevent_4core_12http_request_5minor___get__(o);
15795
static PyObject *__pyx_getprop_6gevent_4core_12http_request_version(PyObject *o, void *x) {
15796
return __pyx_pf_6gevent_4core_12http_request_7version___get__(o);
15799
static PyObject *__pyx_getprop_6gevent_4core_12http_request_response_code(PyObject *o, void *x) {
15800
return __pyx_pf_6gevent_4core_12http_request_13response_code___get__(o);
15803
static PyObject *__pyx_getprop_6gevent_4core_12http_request_response_code_line(PyObject *o, void *x) {
15804
return __pyx_pf_6gevent_4core_12http_request_18response_code_line___get__(o);
15807
static PyObject *__pyx_getprop_6gevent_4core_12http_request_response(PyObject *o, void *x) {
15808
return __pyx_pf_6gevent_4core_12http_request_8response___get__(o);
15811
static PyObject *__pyx_getprop_6gevent_4core_12http_request_chunked(PyObject *o, void *x) {
15812
return __pyx_pf_6gevent_4core_12http_request_7chunked___get__(o);
15815
static PyObject *__pyx_getprop_6gevent_4core_12http_request_input_buffer(PyObject *o, void *x) {
15816
return __pyx_pf_6gevent_4core_12http_request_12input_buffer___get__(o);
15819
static PyObject *__pyx_getprop_6gevent_4core_12http_request_output_buffer(PyObject *o, void *x) {
15820
return __pyx_pf_6gevent_4core_12http_request_13output_buffer___get__(o);
15823
static struct PyMethodDef __pyx_methods_6gevent_4core_http_request[] = {
15824
{__Pyx_NAMESTR("detach"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_detach, METH_NOARGS, __Pyx_DOCSTR(0)},
15825
{__Pyx_NAMESTR("_format"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request__format, METH_NOARGS, __Pyx_DOCSTR(0)},
15826
{__Pyx_NAMESTR("__str__"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request___str__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
15827
{__Pyx_NAMESTR("__repr__"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request___repr__, METH_NOARGS|METH_COEXIST, __Pyx_DOCSTR(0)},
15828
{__Pyx_NAMESTR("get_input_headers"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_get_input_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
15829
{__Pyx_NAMESTR("_add_default_response_headers"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request__add_default_response_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
15830
{__Pyx_NAMESTR("send_reply"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_send_reply, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
15831
{__Pyx_NAMESTR("send_reply_start"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_send_reply_start, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
15832
{__Pyx_NAMESTR("send_reply_chunk"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_send_reply_chunk, METH_O, __Pyx_DOCSTR(0)},
15833
{__Pyx_NAMESTR("send_reply_end"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_send_reply_end, METH_NOARGS, __Pyx_DOCSTR(0)},
15834
{__Pyx_NAMESTR("send_error"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_send_error, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
15835
{__Pyx_NAMESTR("find_input_header"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_find_input_header, METH_O, __Pyx_DOCSTR(0)},
15836
{__Pyx_NAMESTR("find_output_header"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_find_output_header, METH_O, __Pyx_DOCSTR(0)},
15837
{__Pyx_NAMESTR("add_input_header"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_add_input_header, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
15838
{__Pyx_NAMESTR("add_output_header"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_add_output_header, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
15839
{__Pyx_NAMESTR("remove_input_header"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_remove_input_header, METH_O, __Pyx_DOCSTR(__pyx_doc_6gevent_4core_12http_request_remove_input_header)},
15840
{__Pyx_NAMESTR("remove_output_header"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_remove_output_header, METH_O, __Pyx_DOCSTR(__pyx_doc_6gevent_4core_12http_request_remove_output_header)},
15841
{__Pyx_NAMESTR("clear_input_headers"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_clear_input_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
15842
{__Pyx_NAMESTR("clear_output_headers"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_clear_output_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
17989
static PyObject *__pyx_getprop_6gevent_4core_12http_request_default_response_headers(PyObject *o, void *x) {
17990
return __pyx_pf_6gevent_4core_12http_request_24default_response_headers___get__(o);
17993
static int __pyx_setprop_6gevent_4core_12http_request_default_response_headers(PyObject *o, PyObject *v, void *x) {
17995
return __pyx_pf_6gevent_4core_12http_request_24default_response_headers_1__set__(o, v);
17998
return __pyx_pf_6gevent_4core_12http_request_24default_response_headers_2__del__(o);
18002
static PyMethodDef __pyx_methods_6gevent_4core_http_request[] = {
18003
{__Pyx_NAMESTR("_add_default_response_headers"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_2_add_default_response_headers, METH_NOARGS, __Pyx_DOCSTR(0)},
18004
{__Pyx_NAMESTR("send_reply"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_3send_reply, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
18005
{__Pyx_NAMESTR("send_reply_start"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_4send_reply_start, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
18006
{__Pyx_NAMESTR("send_reply_chunk"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_5send_reply_chunk, METH_O, __Pyx_DOCSTR(0)},
18007
{__Pyx_NAMESTR("send_reply_end"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_6send_reply_end, METH_NOARGS, __Pyx_DOCSTR(0)},
18008
{__Pyx_NAMESTR("send_error"), (PyCFunction)__pyx_pf_6gevent_4core_12http_request_7send_error, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
15846
static struct PyMemberDef __pyx_members_6gevent_4core_http_request[] = {
15847
{(char *)"default_response_headers", T_OBJECT, offsetof(struct __pyx_obj_6gevent_4core_http_request, default_response_headers), 0, 0},
15851
18012
static struct PyGetSetDef __pyx_getsets_6gevent_4core_http_request[] = {
15852
{(char *)"_obj", __pyx_getprop_6gevent_4core_12http_request__obj, 0, 0, 0},
15853
{(char *)"connection", __pyx_getprop_6gevent_4core_12http_request_connection, 0, 0, 0},
15854
{(char *)"remote_host", __pyx_getprop_6gevent_4core_12http_request_remote_host, 0, 0, 0},
15855
{(char *)"remote_port", __pyx_getprop_6gevent_4core_12http_request_remote_port, 0, 0, 0},
15856
{(char *)"remote", __pyx_getprop_6gevent_4core_12http_request_remote, 0, 0, 0},
15857
{(char *)"kind", __pyx_getprop_6gevent_4core_12http_request_kind, 0, 0, 0},
15858
{(char *)"type", __pyx_getprop_6gevent_4core_12http_request_type, 0, 0, 0},
15859
{(char *)"typestr", __pyx_getprop_6gevent_4core_12http_request_typestr, 0, 0, 0},
15860
{(char *)"uri", __pyx_getprop_6gevent_4core_12http_request_uri, 0, 0, 0},
15861
{(char *)"major", __pyx_getprop_6gevent_4core_12http_request_major, 0, 0, 0},
15862
{(char *)"minor", __pyx_getprop_6gevent_4core_12http_request_minor, 0, 0, 0},
15863
{(char *)"version", __pyx_getprop_6gevent_4core_12http_request_version, 0, 0, 0},
15864
{(char *)"response_code", __pyx_getprop_6gevent_4core_12http_request_response_code, 0, 0, 0},
15865
{(char *)"response_code_line", __pyx_getprop_6gevent_4core_12http_request_response_code_line, 0, 0, 0},
15866
{(char *)"response", __pyx_getprop_6gevent_4core_12http_request_response, 0, 0, 0},
15867
{(char *)"chunked", __pyx_getprop_6gevent_4core_12http_request_chunked, 0, 0, 0},
15868
{(char *)"input_buffer", __pyx_getprop_6gevent_4core_12http_request_input_buffer, 0, 0, 0},
15869
{(char *)"output_buffer", __pyx_getprop_6gevent_4core_12http_request_output_buffer, 0, 0, 0},
18013
{(char *)"default_response_headers", __pyx_getprop_6gevent_4core_12http_request_default_response_headers, __pyx_setprop_6gevent_4core_12http_request_default_response_headers, 0, 0},
15870
18014
{0, 0, 0, 0, 0}
16482
18921
{&__pyx_kp_s_26, __pyx_k_26, sizeof(__pyx_k_26), 0, 0, 1, 0},
16483
18922
{&__pyx_kp_s_27, __pyx_k_27, sizeof(__pyx_k_27), 0, 0, 1, 0},
16484
18923
{&__pyx_kp_s_28, __pyx_k_28, sizeof(__pyx_k_28), 0, 0, 1, 0},
16485
{&__pyx_n_s_29, __pyx_k_29, sizeof(__pyx_k_29), 0, 0, 1, 1},
18924
{&__pyx_kp_s_29, __pyx_k_29, sizeof(__pyx_k_29), 0, 0, 1, 0},
16486
18925
{&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
16487
{&__pyx_kp_s_30, __pyx_k_30, sizeof(__pyx_k_30), 0, 0, 1, 0},
16488
{&__pyx_kp_s_31, __pyx_k_31, sizeof(__pyx_k_31), 0, 0, 1, 0},
16489
18926
{&__pyx_n_s_32, __pyx_k_32, sizeof(__pyx_k_32), 0, 0, 1, 1},
16490
{&__pyx_kp_s_33, __pyx_k_33, sizeof(__pyx_k_33), 0, 0, 1, 0},
16491
{&__pyx_kp_s_34, __pyx_k_34, sizeof(__pyx_k_34), 0, 0, 1, 0},
18927
{&__pyx_n_s_34, __pyx_k_34, sizeof(__pyx_k_34), 0, 0, 1, 1},
18928
{&__pyx_kp_s_35, __pyx_k_35, sizeof(__pyx_k_35), 0, 0, 1, 0},
18929
{&__pyx_kp_s_36, __pyx_k_36, sizeof(__pyx_k_36), 0, 0, 1, 0},
18930
{&__pyx_n_s_38, __pyx_k_38, sizeof(__pyx_k_38), 0, 0, 1, 1},
18931
{&__pyx_kp_s_39, __pyx_k_39, sizeof(__pyx_k_39), 0, 0, 1, 0},
16492
18932
{&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
16493
18933
{&__pyx_kp_s_40, __pyx_k_40, sizeof(__pyx_k_40), 0, 0, 1, 0},
16494
{&__pyx_kp_s_41, __pyx_k_41, sizeof(__pyx_k_41), 0, 0, 1, 0},
16495
{&__pyx_kp_s_46, __pyx_k_46, sizeof(__pyx_k_46), 0, 0, 1, 0},
16496
{&__pyx_kp_s_47, __pyx_k_47, sizeof(__pyx_k_47), 0, 0, 1, 0},
16497
{&__pyx_kp_s_48, __pyx_k_48, sizeof(__pyx_k_48), 0, 0, 1, 0},
16498
{&__pyx_kp_s_49, __pyx_k_49, sizeof(__pyx_k_49), 0, 0, 1, 0},
18934
{&__pyx_kp_s_42, __pyx_k_42, sizeof(__pyx_k_42), 0, 0, 1, 0},
18935
{&__pyx_kp_s_44, __pyx_k_44, sizeof(__pyx_k_44), 0, 0, 1, 0},
16499
18936
{&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
16500
18937
{&__pyx_kp_s_50, __pyx_k_50, sizeof(__pyx_k_50), 0, 0, 1, 0},
16501
18938
{&__pyx_kp_s_51, __pyx_k_51, sizeof(__pyx_k_51), 0, 0, 1, 0},
16502
{&__pyx_kp_s_52, __pyx_k_52, sizeof(__pyx_k_52), 0, 0, 1, 0},
16503
{&__pyx_n_s_53, __pyx_k_53, sizeof(__pyx_k_53), 0, 0, 1, 1},
16504
{&__pyx_n_s_54, __pyx_k_54, sizeof(__pyx_k_54), 0, 0, 1, 1},
18939
{&__pyx_kp_s_54, __pyx_k_54, sizeof(__pyx_k_54), 0, 0, 1, 0},
16505
18940
{&__pyx_kp_s_55, __pyx_k_55, sizeof(__pyx_k_55), 0, 0, 1, 0},
16506
{&__pyx_kp_s_56, __pyx_k_56, sizeof(__pyx_k_56), 0, 0, 1, 0},
16507
18941
{&__pyx_kp_s_57, __pyx_k_57, sizeof(__pyx_k_57), 0, 0, 1, 0},
16508
18942
{&__pyx_kp_s_58, __pyx_k_58, sizeof(__pyx_k_58), 0, 0, 1, 0},
16509
{&__pyx_kp_u_59, __pyx_k_59, sizeof(__pyx_k_59), 0, 1, 0, 0},
16510
18943
{&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
16511
{&__pyx_kp_u_60, __pyx_k_60, sizeof(__pyx_k_60), 0, 1, 0, 0},
16512
{&__pyx_kp_u_61, __pyx_k_61, sizeof(__pyx_k_61), 0, 1, 0, 0},
16513
{&__pyx_kp_u_62, __pyx_k_62, sizeof(__pyx_k_62), 0, 1, 0, 0},
16514
{&__pyx_kp_u_63, __pyx_k_63, sizeof(__pyx_k_63), 0, 1, 0, 0},
16515
{&__pyx_kp_u_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 1, 0, 0},
16516
{&__pyx_kp_u_65, __pyx_k_65, sizeof(__pyx_k_65), 0, 1, 0, 0},
16517
{&__pyx_kp_u_66, __pyx_k_66, sizeof(__pyx_k_66), 0, 1, 0, 0},
16518
{&__pyx_kp_u_67, __pyx_k_67, sizeof(__pyx_k_67), 0, 1, 0, 0},
16519
{&__pyx_kp_u_68, __pyx_k_68, sizeof(__pyx_k_68), 0, 1, 0, 0},
16520
{&__pyx_kp_u_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 1, 0, 0},
18944
{&__pyx_kp_s_60, __pyx_k_60, sizeof(__pyx_k_60), 0, 0, 1, 0},
18945
{&__pyx_kp_s_61, __pyx_k_61, sizeof(__pyx_k_61), 0, 0, 1, 0},
18946
{&__pyx_n_s_62, __pyx_k_62, sizeof(__pyx_k_62), 0, 0, 1, 1},
18947
{&__pyx_kp_s_63, __pyx_k_63, sizeof(__pyx_k_63), 0, 0, 1, 0},
18948
{&__pyx_n_s_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 0, 1, 1},
18949
{&__pyx_n_s_65, __pyx_k_65, sizeof(__pyx_k_65), 0, 0, 1, 1},
18950
{&__pyx_kp_s_66, __pyx_k_66, sizeof(__pyx_k_66), 0, 0, 1, 0},
18951
{&__pyx_kp_s_67, __pyx_k_67, sizeof(__pyx_k_67), 0, 0, 1, 0},
18952
{&__pyx_kp_s_68, __pyx_k_68, sizeof(__pyx_k_68), 0, 0, 1, 0},
18953
{&__pyx_kp_s_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 0, 1, 0},
16521
18954
{&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
16522
{&__pyx_kp_u_70, __pyx_k_70, sizeof(__pyx_k_70), 0, 1, 0, 0},
16523
{&__pyx_kp_u_71, __pyx_k_71, sizeof(__pyx_k_71), 0, 1, 0, 0},
16524
{&__pyx_kp_u_72, __pyx_k_72, sizeof(__pyx_k_72), 0, 1, 0, 0},
16525
{&__pyx_kp_u_73, __pyx_k_73, sizeof(__pyx_k_73), 0, 1, 0, 0},
16526
{&__pyx_kp_u_74, __pyx_k_74, sizeof(__pyx_k_74), 0, 1, 0, 0},
16527
{&__pyx_kp_u_75, __pyx_k_75, sizeof(__pyx_k_75), 0, 1, 0, 0},
16528
{&__pyx_kp_u_76, __pyx_k_76, sizeof(__pyx_k_76), 0, 1, 0, 0},
16529
{&__pyx_n_s_77, __pyx_k_77, sizeof(__pyx_k_77), 0, 0, 1, 1},
16530
18955
{&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
16531
18956
{&__pyx_kp_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 0},
16532
18957
{&__pyx_n_s__ACTIVE, __pyx_k__ACTIVE, sizeof(__pyx_k__ACTIVE), 0, 0, 1, 1},
16533
18958
{&__pyx_n_s__AttributeError, __pyx_k__AttributeError, sizeof(__pyx_k__AttributeError), 0, 0, 1, 1},
16534
18959
{&__pyx_n_s__BSD, __pyx_k__BSD, sizeof(__pyx_k__BSD), 0, 0, 1, 1},
18960
{&__pyx_n_s__CONNECT, __pyx_k__CONNECT, sizeof(__pyx_k__CONNECT), 0, 0, 1, 1},
16535
18961
{&__pyx_n_s__DELETE, __pyx_k__DELETE, sizeof(__pyx_k__DELETE), 0, 0, 1, 1},
16536
18962
{&__pyx_n_s__DNS_ERR_FORMAT, __pyx_k__DNS_ERR_FORMAT, sizeof(__pyx_k__DNS_ERR_FORMAT), 0, 0, 1, 1},
16537
18963
{&__pyx_n_s__DNS_ERR_NONE, __pyx_k__DNS_ERR_NONE, sizeof(__pyx_k__DNS_ERR_NONE), 0, 0, 1, 1},
16810
19359
/*--- Builtin init code ---*/
16811
19360
if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19361
/*--- Constants init code ---*/
19362
if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16812
19363
/*--- Global init code ---*/
16813
19364
/*--- Function export code ---*/
16814
19365
/*--- Type init code ---*/
16815
19366
__pyx_vtabptr_6gevent_4core_event = &__pyx_vtable_6gevent_4core_event;
16816
#if PY_MAJOR_VERSION >= 3
16817
19367
__pyx_vtable_6gevent_4core_event._addref = (PyObject *(*)(struct __pyx_obj_6gevent_4core_event *))__pyx_f_6gevent_4core_5event__addref;
16818
19368
__pyx_vtable_6gevent_4core_event._delref = (PyObject *(*)(struct __pyx_obj_6gevent_4core_event *))__pyx_f_6gevent_4core_5event__delref;
16820
*(void(**)(void))&__pyx_vtable_6gevent_4core_event._addref = (void(*)(void))__pyx_f_6gevent_4core_5event__addref;
16821
*(void(**)(void))&__pyx_vtable_6gevent_4core_event._delref = (void(*)(void))__pyx_f_6gevent_4core_5event__delref;
16823
if (PyType_Ready(&__pyx_type_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16824
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_event.tp_dict, __pyx_vtabptr_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16825
if (__Pyx_SetAttrString(__pyx_m, "event", (PyObject *)&__pyx_type_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19369
if (PyType_Ready(&__pyx_type_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19370
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_event.tp_dict, __pyx_vtabptr_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19371
if (__Pyx_SetAttrString(__pyx_m, "event", (PyObject *)&__pyx_type_6gevent_4core_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16826
19372
__pyx_ptype_6gevent_4core_event = &__pyx_type_6gevent_4core_event;
16827
19373
__pyx_vtabptr_6gevent_4core_read_event = &__pyx_vtable_6gevent_4core_read_event;
16828
19374
__pyx_vtable_6gevent_4core_read_event.__pyx_base = *__pyx_vtabptr_6gevent_4core_event;
16829
19375
__pyx_type_6gevent_4core_read_event.tp_base = __pyx_ptype_6gevent_4core_event;
16830
if (PyType_Ready(&__pyx_type_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16831
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_read_event.tp_dict, __pyx_vtabptr_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16832
if (__Pyx_SetAttrString(__pyx_m, "read_event", (PyObject *)&__pyx_type_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19376
if (PyType_Ready(&__pyx_type_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19377
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_read_event.tp_dict, __pyx_vtabptr_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19378
if (__Pyx_SetAttrString(__pyx_m, "read_event", (PyObject *)&__pyx_type_6gevent_4core_read_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16833
19379
__pyx_ptype_6gevent_4core_read_event = &__pyx_type_6gevent_4core_read_event;
16834
19380
__pyx_vtabptr_6gevent_4core_write_event = &__pyx_vtable_6gevent_4core_write_event;
16835
19381
__pyx_vtable_6gevent_4core_write_event.__pyx_base = *__pyx_vtabptr_6gevent_4core_event;
16836
19382
__pyx_type_6gevent_4core_write_event.tp_base = __pyx_ptype_6gevent_4core_event;
16837
if (PyType_Ready(&__pyx_type_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16838
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_write_event.tp_dict, __pyx_vtabptr_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16839
if (__Pyx_SetAttrString(__pyx_m, "write_event", (PyObject *)&__pyx_type_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19383
if (PyType_Ready(&__pyx_type_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19384
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_write_event.tp_dict, __pyx_vtabptr_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19385
if (__Pyx_SetAttrString(__pyx_m, "write_event", (PyObject *)&__pyx_type_6gevent_4core_write_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16840
19386
__pyx_ptype_6gevent_4core_write_event = &__pyx_type_6gevent_4core_write_event;
16841
19387
__pyx_vtabptr_6gevent_4core_timer = &__pyx_vtable_6gevent_4core_timer;
16842
19388
__pyx_vtable_6gevent_4core_timer.__pyx_base = *__pyx_vtabptr_6gevent_4core_event;
16843
19389
__pyx_type_6gevent_4core_timer.tp_base = __pyx_ptype_6gevent_4core_event;
16844
if (PyType_Ready(&__pyx_type_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16845
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_timer.tp_dict, __pyx_vtabptr_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16846
if (__Pyx_SetAttrString(__pyx_m, "timer", (PyObject *)&__pyx_type_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19390
if (PyType_Ready(&__pyx_type_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19391
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_timer.tp_dict, __pyx_vtabptr_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19392
if (__Pyx_SetAttrString(__pyx_m, "timer", (PyObject *)&__pyx_type_6gevent_4core_timer) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16847
19393
__pyx_ptype_6gevent_4core_timer = &__pyx_type_6gevent_4core_timer;
16848
19394
__pyx_vtabptr_6gevent_4core_signal = &__pyx_vtable_6gevent_4core_signal;
16849
19395
__pyx_vtable_6gevent_4core_signal.__pyx_base = *__pyx_vtabptr_6gevent_4core_event;
16850
19396
__pyx_type_6gevent_4core_signal.tp_base = __pyx_ptype_6gevent_4core_event;
16851
if (PyType_Ready(&__pyx_type_6gevent_4core_signal) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16852
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_signal.tp_dict, __pyx_vtabptr_6gevent_4core_signal) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16853
if (__Pyx_SetAttrString(__pyx_m, "signal", (PyObject *)&__pyx_type_6gevent_4core_signal) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19397
if (PyType_Ready(&__pyx_type_6gevent_4core_signal) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19398
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_signal.tp_dict, __pyx_vtabptr_6gevent_4core_signal) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19399
if (__Pyx_SetAttrString(__pyx_m, "signal", (PyObject *)&__pyx_type_6gevent_4core_signal) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16854
19400
__pyx_ptype_6gevent_4core_signal = &__pyx_type_6gevent_4core_signal;
16855
19401
__pyx_vtabptr_6gevent_4core_active_event = &__pyx_vtable_6gevent_4core_active_event;
16856
19402
__pyx_vtable_6gevent_4core_active_event.__pyx_base = *__pyx_vtabptr_6gevent_4core_event;
16857
19403
__pyx_type_6gevent_4core_active_event.tp_base = __pyx_ptype_6gevent_4core_event;
16858
if (PyType_Ready(&__pyx_type_6gevent_4core_active_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16859
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_active_event.tp_dict, __pyx_vtabptr_6gevent_4core_active_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16860
if (__Pyx_SetAttrString(__pyx_m, "active_event", (PyObject *)&__pyx_type_6gevent_4core_active_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19404
if (PyType_Ready(&__pyx_type_6gevent_4core_active_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19405
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_active_event.tp_dict, __pyx_vtabptr_6gevent_4core_active_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19406
if (__Pyx_SetAttrString(__pyx_m, "active_event", (PyObject *)&__pyx_type_6gevent_4core_active_event) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16861
19407
__pyx_ptype_6gevent_4core_active_event = &__pyx_type_6gevent_4core_active_event;
16862
19408
if (PyType_Ready(&__pyx_type_6gevent_4core_buffer) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16863
19409
if (__Pyx_SetAttrString(__pyx_m, "buffer", (PyObject *)&__pyx_type_6gevent_4core_buffer) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16864
19410
__pyx_ptype_6gevent_4core_buffer = &__pyx_type_6gevent_4core_buffer;
16865
if (PyType_Ready(&__pyx_type_6gevent_4core_http_request) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16866
if (__Pyx_SetAttrString(__pyx_m, "http_request", (PyObject *)&__pyx_type_6gevent_4core_http_request) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16867
if (__pyx_type_6gevent_4core_http_request.tp_weaklistoffset == 0) __pyx_type_6gevent_4core_http_request.tp_weaklistoffset = offsetof(struct __pyx_obj_6gevent_4core_http_request, __weakref__);
19411
if (PyType_Ready(&__pyx_type_6gevent_4core_http_request_base) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19412
if (__Pyx_SetAttrString(__pyx_m, "http_request_base", (PyObject *)&__pyx_type_6gevent_4core_http_request_base) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19413
if (__pyx_type_6gevent_4core_http_request_base.tp_weaklistoffset == 0) __pyx_type_6gevent_4core_http_request_base.tp_weaklistoffset = offsetof(struct __pyx_obj_6gevent_4core_http_request_base, __weakref__);
19414
__pyx_ptype_6gevent_4core_http_request_base = &__pyx_type_6gevent_4core_http_request_base;
19415
__pyx_type_6gevent_4core_http_request.tp_base = __pyx_ptype_6gevent_4core_http_request_base;
19416
if (PyType_Ready(&__pyx_type_6gevent_4core_http_request) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19417
if (__Pyx_SetAttrString(__pyx_m, "http_request", (PyObject *)&__pyx_type_6gevent_4core_http_request) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19418
if (__pyx_type_6gevent_4core_http_request.tp_weaklistoffset == 0) __pyx_type_6gevent_4core_http_request.tp_weaklistoffset = offsetof(struct __pyx_obj_6gevent_4core_http_request, __pyx_base.__weakref__);
16868
19419
__pyx_ptype_6gevent_4core_http_request = &__pyx_type_6gevent_4core_http_request;
16869
if (PyType_Ready(&__pyx_type_6gevent_4core_http_connection) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16870
if (__Pyx_SetAttrString(__pyx_m, "http_connection", (PyObject *)&__pyx_type_6gevent_4core_http_connection) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19420
__pyx_vtabptr_6gevent_4core_http_request_client = &__pyx_vtable_6gevent_4core_http_request_client;
19421
__pyx_vtable_6gevent_4core_http_request_client._addref = (PyObject *(*)(struct __pyx_obj_6gevent_4core_http_request_client *))__pyx_f_6gevent_4core_19http_request_client__addref;
19422
__pyx_vtable_6gevent_4core_http_request_client._delref = (PyObject *(*)(struct __pyx_obj_6gevent_4core_http_request_client *))__pyx_f_6gevent_4core_19http_request_client__delref;
19423
__pyx_type_6gevent_4core_http_request_client.tp_base = __pyx_ptype_6gevent_4core_http_request_base;
19424
if (PyType_Ready(&__pyx_type_6gevent_4core_http_request_client) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19425
if (__Pyx_SetVtable(__pyx_type_6gevent_4core_http_request_client.tp_dict, __pyx_vtabptr_6gevent_4core_http_request_client) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19426
if (__Pyx_SetAttrString(__pyx_m, "http_request_client", (PyObject *)&__pyx_type_6gevent_4core_http_request_client) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19427
if (__pyx_type_6gevent_4core_http_request_client.tp_weaklistoffset == 0) __pyx_type_6gevent_4core_http_request_client.tp_weaklistoffset = offsetof(struct __pyx_obj_6gevent_4core_http_request_client, __pyx_base.__weakref__);
19428
__pyx_ptype_6gevent_4core_http_request_client = &__pyx_type_6gevent_4core_http_request_client;
19429
if (PyType_Ready(&__pyx_type_6gevent_4core_http_connection) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19430
if (__Pyx_SetAttrString(__pyx_m, "http_connection", (PyObject *)&__pyx_type_6gevent_4core_http_connection) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16871
19431
__pyx_ptype_6gevent_4core_http_connection = &__pyx_type_6gevent_4core_http_connection;
16872
if (PyType_Ready(&__pyx_type_6gevent_4core_http) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16873
if (__Pyx_SetAttrString(__pyx_m, "http", (PyObject *)&__pyx_type_6gevent_4core_http) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 508; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19432
if (PyType_Ready(&__pyx_type_6gevent_4core_http) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19433
if (__Pyx_SetAttrString(__pyx_m, "http", (PyObject *)&__pyx_type_6gevent_4core_http) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 658; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16874
19434
__pyx_ptype_6gevent_4core_http = &__pyx_type_6gevent_4core_http;
16875
19435
/*--- Type import code ---*/
16876
19436
/*--- Function import code ---*/
16877
19437
/*--- Execution code ---*/
16879
/* "/home/denis/work/gevent/gevent/core.pyx":31
19439
/* "gevent/core.pyx":31
16882
19442
* __author__ = ( 'Dug Song <dugsong@monkey.org>', # <<<<<<<<<<<<<<
16883
19443
* 'Martin Murray <mmurray@monkey.org>' )
16884
19444
* __copyright__ = ( 'Copyright (c) 2004 Dug Song',
16886
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16887
__Pyx_GOTREF(__pyx_t_1);
16888
__Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
16889
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_46));
16890
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
16891
__Pyx_INCREF(((PyObject *)__pyx_kp_s_47));
16892
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_47));
16893
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_47));
16894
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____author__, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16895
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19446
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____author__, ((PyObject *)__pyx_k_tuple_56)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16897
/* "/home/denis/work/gevent/gevent/core.pyx":33
19448
/* "gevent/core.pyx":33
16898
19449
* __author__ = ( 'Dug Song <dugsong@monkey.org>',
16899
19450
* 'Martin Murray <mmurray@monkey.org>' )
16900
19451
* __copyright__ = ( 'Copyright (c) 2004 Dug Song', # <<<<<<<<<<<<<<
16901
19452
* 'Copyright (c) 2003 Martin Murray' )
16902
19453
* __license__ = 'BSD'
16904
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16905
__Pyx_GOTREF(__pyx_t_1);
16906
__Pyx_INCREF(((PyObject *)__pyx_kp_s_48));
16907
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_kp_s_48));
16908
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_48));
16909
__Pyx_INCREF(((PyObject *)__pyx_kp_s_49));
16910
PyTuple_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_kp_s_49));
16911
__Pyx_GIVEREF(((PyObject *)__pyx_kp_s_49));
16912
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____copyright__, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16913
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19455
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____copyright__, ((PyObject *)__pyx_k_tuple_59)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
16915
/* "/home/denis/work/gevent/gevent/core.pyx":35
19457
/* "gevent/core.pyx":35
16916
19458
* __copyright__ = ( 'Copyright (c) 2004 Dug Song',
16917
19459
* 'Copyright (c) 2003 Martin Murray' )
16918
19460
* __license__ = 'BSD' # <<<<<<<<<<<<<<
17032
19574
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17033
19575
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17035
/* "/home/denis/work/gevent/gevent/core.pyx":46
19577
/* "gevent/core.pyx":46
17036
19578
* import traceback
17037
19579
* from pprint import pformat
17038
19580
* import weakref # <<<<<<<<<<<<<<
17040
* DEF EVENT_INTERNAL_AVAILABLE = False
17042
19584
__pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s__weakref), 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17043
19585
__Pyx_GOTREF(__pyx_t_2);
17044
19586
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__weakref, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17045
19587
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17047
/* "/home/denis/work/gevent/gevent/core.pyx":346
19589
/* "gevent/core.pyx":303
17048
19590
* """Create a new scheduled event with evtype=EV_READ"""
17050
19592
* def __init__(self, int handle, callback, timeout=None, arg=None, persist=False): # <<<<<<<<<<<<<<
17051
19593
* cdef short evtype = EV_READ
17052
19594
* if persist:
17054
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19596
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17055
19597
__Pyx_GOTREF(__pyx_t_2);
17056
19598
__pyx_k_12 = __pyx_t_2;
17057
19599
__Pyx_GIVEREF(__pyx_t_2);
17058
19600
__pyx_t_2 = 0;
17060
/* "/home/denis/work/gevent/gevent/core.pyx":357
19602
/* "gevent/core.pyx":314
17061
19603
* """Create a new scheduled event with evtype=EV_WRITE"""
17063
19605
* def __init__(self, int handle, callback, timeout=None, arg=None, persist=False): # <<<<<<<<<<<<<<
17064
19606
* cdef short evtype = EV_WRITE
17065
19607
* if persist:
17067
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19609
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17068
19610
__Pyx_GOTREF(__pyx_t_2);
17069
19611
__pyx_k_13 = __pyx_t_2;
17070
19612
__Pyx_GIVEREF(__pyx_t_2);
17071
19613
__pyx_t_2 = 0;
17073
/* "/home/denis/work/gevent/gevent/core.pyx":365
19615
/* "gevent/core.pyx":322
17076
19618
* class readwrite_event(event): # <<<<<<<<<<<<<<
17077
19619
* """Create a new scheduled event with evtype=EV_READ|EV_WRITE"""
17080
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19622
__pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17081
19623
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
17082
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17083
__Pyx_GOTREF(__pyx_t_1);
19625
/* "gevent/core.pyx":325
19626
* """Create a new scheduled event with evtype=EV_READ|EV_WRITE"""
19628
* def __init__(self, int handle, callback, timeout=None, arg=None, persist=False): # <<<<<<<<<<<<<<
19629
* cdef short evtype = EV_READ|EV_WRITE
19632
__pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19633
__Pyx_GOTREF(__pyx_t_1);
19634
__pyx_k_14 = __pyx_t_1;
19635
__Pyx_GIVEREF(__pyx_t_1);
19637
__pyx_t_1 = __pyx_binding_PyCFunctionType_NewEx(&__pyx_mdef_6gevent_4core_15readwrite_event___init__, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19638
__Pyx_GOTREF(__pyx_t_1);
19639
if (PyObject_SetItem(__pyx_t_2, __pyx_n_s____init__, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19640
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19642
/* "gevent/core.pyx":322
19645
* class readwrite_event(event): # <<<<<<<<<<<<<<
19646
* """Create a new scheduled event with evtype=EV_READ|EV_WRITE"""
19649
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19650
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17084
19651
__Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_event)));
17085
19652
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_event)));
17086
19653
__Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_6gevent_4core_event)));
17087
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_52)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17088
__pyx_t_3 = __Pyx_CreateClass(__pyx_t_1, ((PyObject *)__pyx_t_2), __pyx_n_s__readwrite_event, "gevent.core"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19654
if (PyDict_SetItemString(((PyObject *)__pyx_t_2), "__doc__", ((PyObject *)__pyx_kp_s_63)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19655
__pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_2), __pyx_n_s__readwrite_event, __pyx_n_s_62); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17089
19656
__Pyx_GOTREF(__pyx_t_3);
17090
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17092
/* "/home/denis/work/gevent/gevent/core.pyx":368
17093
* """Create a new scheduled event with evtype=EV_READ|EV_WRITE"""
17095
* def __init__(self, int handle, callback, timeout=None, arg=None, persist=False): # <<<<<<<<<<<<<<
17096
* cdef short evtype = EV_READ|EV_WRITE
17099
__pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17100
__Pyx_GOTREF(__pyx_t_1);
17101
__pyx_k_14 = __pyx_t_1;
17102
__Pyx_GIVEREF(__pyx_t_1);
17104
__pyx_t_1 = PyCFunction_New(&__pyx_mdef_6gevent_4core_15readwrite_event___init__, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17105
__Pyx_GOTREF(__pyx_t_1);
17106
__pyx_t_4 = PyMethod_New(__pyx_t_1, 0, __pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17107
__Pyx_GOTREF(__pyx_t_4);
17108
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17109
if (PyObject_SetAttr(__pyx_t_3, __pyx_n_s____init__, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17110
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17111
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__readwrite_event, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19657
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
19658
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__readwrite_event, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17112
19659
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17113
19660
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
17115
/* "/home/denis/work/gevent/gevent/core.pyx":445
19662
/* "gevent/core.pyx":384
19665
* def init(): # <<<<<<<<<<<<<<
19666
* """Initialize event queue."""
19669
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_init, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19670
__Pyx_GOTREF(__pyx_t_2);
19671
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__init, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19672
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19674
/* "gevent/core.pyx":389
19677
* def dispatch(): # <<<<<<<<<<<<<<
19678
* """Dispatch all events on the event queue.
19679
* Returns 0 on success, and 1 if no events are registered.
19681
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_1dispatch, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19682
__Pyx_GOTREF(__pyx_t_2);
19683
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dispatch, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19684
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19686
/* "gevent/core.pyx":402
17118
19689
* def loop(nonblock=False): # <<<<<<<<<<<<<<
17119
19690
* """Dispatch all pending events on queue in a single pass.
17120
19691
* Returns 0 on success, and 1 if no events are registered.
17122
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19693
__pyx_t_2 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17123
19694
__Pyx_GOTREF(__pyx_t_2);
17124
19695
__pyx_k_15 = __pyx_t_2;
17125
19696
__Pyx_GIVEREF(__pyx_t_2);
17126
19697
__pyx_t_2 = 0;
17128
/* "/home/denis/work/gevent/gevent/evdns.pxi":1
19698
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_2loop, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19699
__Pyx_GOTREF(__pyx_t_2);
19700
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__loop, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19701
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19703
/* "gevent/core.pyx":418
19706
* def get_version(): # <<<<<<<<<<<<<<
19707
* """Wrapper for :meth:`event_get_version`"""
19708
* return event_get_version()
19710
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_3get_version, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19711
__Pyx_GOTREF(__pyx_t_2);
19712
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_version, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 418; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19713
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19715
/* "gevent/core.pyx":423
19718
* def get_method(): # <<<<<<<<<<<<<<
19719
* """Wrapper for :meth:`event_get_method`"""
19720
* return event_get_method()
19722
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_4get_method, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19723
__Pyx_GOTREF(__pyx_t_2);
19724
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_method, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 423; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19725
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19727
/* "gevent/core.pyx":436
19728
* # _EVENT_VERSION is available since libevent 1.4.0-beta
19730
* def get_header_version(): # <<<<<<<<<<<<<<
19731
* """Return _EVENT_VERSION"""
19734
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_5get_header_version, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19735
__Pyx_GOTREF(__pyx_t_2);
19736
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__get_header_version, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 436; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19737
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19739
/* "gevent/core.pyx":447
19740
* # which will work in every version other than 1.4.0-beta
19742
* def reinit(): # <<<<<<<<<<<<<<
19743
* """Wrapper for :meth:`event_reinit`."""
19746
__pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_6reinit, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19747
__Pyx_GOTREF(__pyx_t_2);
19748
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__reinit, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19749
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19751
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":1
17129
19752
* __all__ += ['dns_init', 'dns_shutdown', 'dns_err_to_string', # <<<<<<<<<<<<<<
17130
19753
* 'dns_resolve_ipv4', 'dns_resolve_ipv6',
17131
19754
* 'dns_resolve_reverse', 'dns_resolve_reverse_ipv6']
17133
__pyx_t_2 = PyList_New(7); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17134
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
19756
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s____all__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19757
__Pyx_GOTREF(__pyx_t_2);
19758
__pyx_t_3 = PyList_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19759
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
17135
19760
__Pyx_INCREF(((PyObject *)__pyx_n_s__dns_init));
17136
PyList_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_n_s__dns_init));
19761
PyList_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_n_s__dns_init));
17137
19762
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__dns_init));
17138
19763
__Pyx_INCREF(((PyObject *)__pyx_n_s__dns_shutdown));
17139
PyList_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_n_s__dns_shutdown));
19764
PyList_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_n_s__dns_shutdown));
17140
19765
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__dns_shutdown));
17141
19766
__Pyx_INCREF(((PyObject *)__pyx_n_s__dns_err_to_string));
17142
PyList_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_n_s__dns_err_to_string));
19767
PyList_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_n_s__dns_err_to_string));
17143
19768
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__dns_err_to_string));
17144
19769
__Pyx_INCREF(((PyObject *)__pyx_n_s__dns_resolve_ipv4));
17145
PyList_SET_ITEM(__pyx_t_2, 3, ((PyObject *)__pyx_n_s__dns_resolve_ipv4));
19770
PyList_SET_ITEM(__pyx_t_3, 3, ((PyObject *)__pyx_n_s__dns_resolve_ipv4));
17146
19771
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__dns_resolve_ipv4));
17147
19772
__Pyx_INCREF(((PyObject *)__pyx_n_s__dns_resolve_ipv6));
17148
PyList_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_n_s__dns_resolve_ipv6));
19773
PyList_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_n_s__dns_resolve_ipv6));
17149
19774
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__dns_resolve_ipv6));
17150
19775
__Pyx_INCREF(((PyObject *)__pyx_n_s__dns_resolve_reverse));
17151
PyList_SET_ITEM(__pyx_t_2, 5, ((PyObject *)__pyx_n_s__dns_resolve_reverse));
19776
PyList_SET_ITEM(__pyx_t_3, 5, ((PyObject *)__pyx_n_s__dns_resolve_reverse));
17152
19777
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__dns_resolve_reverse));
17153
__Pyx_INCREF(((PyObject *)__pyx_n_s_53));
17154
PyList_SET_ITEM(__pyx_t_2, 6, ((PyObject *)__pyx_n_s_53));
17155
__Pyx_GIVEREF(((PyObject *)__pyx_n_s_53));
17156
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s____all__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17157
__Pyx_GOTREF(__pyx_t_3);
17158
__pyx_t_4 = PyNumber_InPlaceAdd(__pyx_t_3, ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17159
__Pyx_GOTREF(__pyx_t_4);
17160
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
17161
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17162
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____all__, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17163
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
19778
__Pyx_INCREF(((PyObject *)__pyx_n_s_64));
19779
PyList_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_n_s_64));
19780
__Pyx_GIVEREF(((PyObject *)__pyx_n_s_64));
19781
__pyx_t_1 = PyNumber_InPlaceAdd(__pyx_t_2, ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19782
__Pyx_GOTREF(__pyx_t_1);
19783
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
19784
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
19785
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____all__, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19786
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17165
/* "/home/denis/work/gevent/gevent/evdns.pxi":20
19788
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":20
17167
19790
* # Result codes
17168
19791
* DNS_ERR_NONE = 0 # <<<<<<<<<<<<<<
17289
19912
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__DNS_QUERY_NO_SEARCH, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17291
/* "/home/denis/work/gevent/gevent/core.pyx":499
19914
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":40
19917
* def dns_init(): # <<<<<<<<<<<<<<
19918
* """Initialize async DNS resolver."""
19921
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_7dns_init, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19922
__Pyx_GOTREF(__pyx_t_1);
19923
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dns_init, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19924
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19926
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":45
19929
* def dns_shutdown(int fail_requests=0): # <<<<<<<<<<<<<<
19930
* """Shutdown the async DNS resolver and terminate all active requests."""
19931
* evdns_shutdown(fail_requests)
19933
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_8dns_shutdown, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19934
__Pyx_GOTREF(__pyx_t_1);
19935
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dns_shutdown, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19936
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19938
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":50
19941
* def dns_err_to_string(int err): # <<<<<<<<<<<<<<
19942
* cdef const_char_ptr result = evdns_err_to_string(err)
19945
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_9dns_err_to_string, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19946
__Pyx_GOTREF(__pyx_t_1);
19947
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dns_err_to_string, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19948
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19950
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":84
19953
* def dns_resolve_ipv4(char *name, int flags, object callback): # <<<<<<<<<<<<<<
19954
* """Lookup an A record for a given name.
19957
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_10dns_resolve_ipv4, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19958
__Pyx_GOTREF(__pyx_t_1);
19959
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dns_resolve_ipv4, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19960
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19962
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":97
19965
* def dns_resolve_ipv6(char *name, int flags, object callback): # <<<<<<<<<<<<<<
19966
* """Lookup an AAAA record for a given name.
19969
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_11dns_resolve_ipv6, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19970
__Pyx_GOTREF(__pyx_t_1);
19971
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dns_resolve_ipv6, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19972
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19974
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":110
19977
* def dns_resolve_reverse(char* packed_ip, int flags, object callback): # <<<<<<<<<<<<<<
19978
* """Lookup a PTR record for a given IPv4 address.
19981
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_12dns_resolve_reverse, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19982
__Pyx_GOTREF(__pyx_t_1);
19983
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__dns_resolve_reverse, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19984
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19986
/* "/home/denis/tmp/gevent-0.13/gevent/evdns.pxi":123
19989
* def dns_resolve_reverse_ipv6(char* packed_ip, int flags, object callback): # <<<<<<<<<<<<<<
19990
* """Lookup a PTR record for a given IPv6 address.
19993
__pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_13dns_resolve_reverse_ipv6, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19994
__Pyx_GOTREF(__pyx_t_1);
19995
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_64, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[3]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
19996
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
19998
/* "gevent/core.pyx":456
17293
20000
* # XXX - make sure event queue is always initialized.
17294
20001
* init() # <<<<<<<<<<<<<<
17296
20003
* if get_version() != get_header_version() and get_header_version() is not None and get_version() != '1.3.99-trunk':
17298
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__init); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17299
__Pyx_GOTREF(__pyx_t_4);
17300
__pyx_t_3 = PyObject_Call(__pyx_t_4, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20005
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__init); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20006
__Pyx_GOTREF(__pyx_t_1);
20007
__pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17301
20008
__Pyx_GOTREF(__pyx_t_3);
17302
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20009
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17303
20010
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17305
/* "/home/denis/work/gevent/gevent/core.pyx":501
20012
/* "gevent/core.pyx":458
17308
20015
* if get_version() != get_header_version() and get_header_version() is not None and get_version() != '1.3.99-trunk': # <<<<<<<<<<<<<<
17309
20016
* import warnings
17310
20017
* msg = "libevent version mismatch: system version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
17312
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20019
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17313
20020
__Pyx_GOTREF(__pyx_t_3);
17314
__pyx_t_4 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17315
__Pyx_GOTREF(__pyx_t_4);
20021
__pyx_t_1 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20022
__Pyx_GOTREF(__pyx_t_1);
17316
20023
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17317
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20024
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17318
20025
__Pyx_GOTREF(__pyx_t_3);
17319
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20026
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17320
20027
__Pyx_GOTREF(__pyx_t_2);
17321
20028
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17322
__pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_2, Py_NE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20029
__pyx_t_3 = PyObject_RichCompare(__pyx_t_1, __pyx_t_2, Py_NE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17323
20030
__Pyx_GOTREF(__pyx_t_3);
17324
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20031
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17325
20032
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17326
__pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20033
__pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17327
20034
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17329
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20036
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17330
20037
__Pyx_GOTREF(__pyx_t_3);
17331
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20038
__pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17332
20039
__Pyx_GOTREF(__pyx_t_2);
17333
20040
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17334
__pyx_t_6 = (__pyx_t_2 != Py_None);
20041
__pyx_t_5 = (__pyx_t_2 != Py_None);
17335
20042
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17337
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20044
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17338
20045
__Pyx_GOTREF(__pyx_t_2);
17339
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20046
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17340
20047
__Pyx_GOTREF(__pyx_t_3);
17341
20048
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17342
__pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_kp_s_55), Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20049
__pyx_t_2 = PyObject_RichCompare(__pyx_t_3, ((PyObject *)__pyx_kp_s_66), Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17343
20050
__Pyx_GOTREF(__pyx_t_2);
17344
20051
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17345
__pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20052
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_6 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17346
20053
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17347
__pyx_t_8 = __pyx_t_7;
20054
__pyx_t_7 = __pyx_t_6;
17349
__pyx_t_8 = __pyx_t_6;
20056
__pyx_t_7 = __pyx_t_5;
17351
__pyx_t_6 = __pyx_t_8;
20058
__pyx_t_5 = __pyx_t_7;
17353
__pyx_t_6 = __pyx_t_5;
20060
__pyx_t_5 = __pyx_t_4;
17357
/* "/home/denis/work/gevent/gevent/core.pyx":502
20064
/* "gevent/core.pyx":459
17359
20066
* if get_version() != get_header_version() and get_header_version() is not None and get_version() != '1.3.99-trunk':
17360
20067
* import warnings # <<<<<<<<<<<<<<
17361
20068
* msg = "libevent version mismatch: system version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
17362
20069
* warnings.warn(msg, UserWarning, stacklevel=2)
17364
__pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s__warnings), 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20071
__pyx_t_2 = __Pyx_Import(((PyObject *)__pyx_n_s__warnings), 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17365
20072
__Pyx_GOTREF(__pyx_t_2);
17366
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__warnings, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20073
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__warnings, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17367
20074
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17369
/* "/home/denis/work/gevent/gevent/core.pyx":503
20076
/* "gevent/core.pyx":460
17370
20077
* if get_version() != get_header_version() and get_header_version() is not None and get_version() != '1.3.99-trunk':
17371
20078
* import warnings
17372
20079
* msg = "libevent version mismatch: system version is %r but this gevent is compiled against %r" % (get_version(), get_header_version()) # <<<<<<<<<<<<<<
17373
20080
* warnings.warn(msg, UserWarning, stacklevel=2)
17376
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20083
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17377
20084
__Pyx_GOTREF(__pyx_t_2);
17378
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20085
__pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17379
20086
__Pyx_GOTREF(__pyx_t_3);
17380
20087
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17381
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20088
__pyx_t_2 = __Pyx_GetName(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17382
20089
__Pyx_GOTREF(__pyx_t_2);
17383
__pyx_t_4 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17384
__Pyx_GOTREF(__pyx_t_4);
20090
__pyx_t_1 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_empty_tuple), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20091
__Pyx_GOTREF(__pyx_t_1);
17385
20092
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17386
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17387
__Pyx_GOTREF(__pyx_t_2);
20093
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20094
__Pyx_GOTREF(((PyObject *)__pyx_t_2));
17388
20095
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
17389
20096
__Pyx_GIVEREF(__pyx_t_3);
17390
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
17391
__Pyx_GIVEREF(__pyx_t_4);
20097
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
20098
__Pyx_GIVEREF(__pyx_t_1);
17392
20099
__pyx_t_3 = 0;
17394
__pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_56), __pyx_t_2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17395
__Pyx_GOTREF(__pyx_t_4);
17396
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17397
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__msg, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17398
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
20101
__pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_67), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20102
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
20103
__Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
20104
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__msg, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20105
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
17400
/* "/home/denis/work/gevent/gevent/core.pyx":504
20107
/* "gevent/core.pyx":461
17401
20108
* import warnings
17402
20109
* msg = "libevent version mismatch: system version is %r but this gevent is compiled against %r" % (get_version(), get_header_version())
17403
20110
* warnings.warn(msg, UserWarning, stacklevel=2) # <<<<<<<<<<<<<<
17405
20112
* include "evbuffer.pxi"
17407
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__warnings); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17408
__Pyx_GOTREF(__pyx_t_4);
17409
__pyx_t_2 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__warn); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20114
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__warnings); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20115
__Pyx_GOTREF(__pyx_t_1);
20116
__pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__warn); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17410
20117
__Pyx_GOTREF(__pyx_t_2);
17411
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17412
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s__msg); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17413
__Pyx_GOTREF(__pyx_t_4);
17414
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17415
__Pyx_GOTREF(__pyx_t_3);
17416
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
17417
__Pyx_GIVEREF(__pyx_t_4);
20118
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20119
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__msg); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20120
__Pyx_GOTREF(__pyx_t_1);
20121
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20122
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
20123
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
20124
__Pyx_GIVEREF(__pyx_t_1);
17418
20125
__Pyx_INCREF(__pyx_builtin_UserWarning);
17419
20126
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_builtin_UserWarning);
17420
20127
__Pyx_GIVEREF(__pyx_builtin_UserWarning);
17422
__pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17423
__Pyx_GOTREF(((PyObject *)__pyx_t_4));
17424
if (PyDict_SetItem(__pyx_t_4, ((PyObject *)__pyx_n_s__stacklevel), __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17425
__pyx_t_1 = PyEval_CallObjectWithKeywords(__pyx_t_2, __pyx_t_3, ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17426
__Pyx_GOTREF(__pyx_t_1);
20129
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20130
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
20131
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_n_s__stacklevel), __pyx_int_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20132
__pyx_t_8 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_t_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20133
__Pyx_GOTREF(__pyx_t_8);
17427
20134
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
17428
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17429
__Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
17430
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20135
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
20136
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20137
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
17431
20138
goto __pyx_L2;
17435
/* "/home/denis/work/gevent/gevent/evbuffer.pxi":1
20142
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":1
17436
20143
* __all__ += ['buffer'] # <<<<<<<<<<<<<<
17438
20145
* cdef extern from "string.h":
20147
__pyx_t_8 = __Pyx_GetName(__pyx_m, __pyx_n_s____all__); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20148
__Pyx_GOTREF(__pyx_t_8);
17440
20149
__pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17441
20150
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17442
20151
__Pyx_INCREF(((PyObject *)__pyx_n_s__buffer));
17443
20152
PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s__buffer));
17444
20153
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__buffer));
17445
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s____all__); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17446
__Pyx_GOTREF(__pyx_t_4);
17447
__pyx_t_3 = PyNumber_InPlaceAdd(__pyx_t_4, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20154
__pyx_t_3 = PyNumber_InPlaceAdd(__pyx_t_8, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17448
20155
__Pyx_GOTREF(__pyx_t_3);
20156
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
17449
20157
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
17450
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17451
20158
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____all__, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17452
20159
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17454
/* "/home/denis/work/gevent/gevent/evbuffer.pxi":105
17457
* def readlines(self, hint=-1): # <<<<<<<<<<<<<<
20161
/* "/home/denis/tmp/gevent-0.13/gevent/evbuffer.pxi":108
17458
20162
* return list(self)
17461
__pyx_t_3 = PyList_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17462
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
20164
* def write(self, bytes data): # <<<<<<<<<<<<<<
20165
* cdef int result = evbuffer_add(self.__obj, data, len(data))
20168
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s____all__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20169
__Pyx_GOTREF(__pyx_t_3);
20171
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":1
20172
* __all__ += ['http_request', 'http_connection', 'http'] # <<<<<<<<<<<<<<
20174
* cdef extern from *:
20176
__pyx_t_1 = PyList_New(3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20177
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17463
20178
__Pyx_INCREF(((PyObject *)__pyx_n_s__http_request));
17464
PyList_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_n_s__http_request));
20179
PyList_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_n_s__http_request));
17465
20180
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__http_request));
17466
20181
__Pyx_INCREF(((PyObject *)__pyx_n_s__http_connection));
17467
PyList_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_n_s__http_connection));
20182
PyList_SET_ITEM(__pyx_t_1, 1, ((PyObject *)__pyx_n_s__http_connection));
17468
20183
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__http_connection));
17469
20184
__Pyx_INCREF(((PyObject *)__pyx_n_s__http));
17470
PyList_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_n_s__http));
20185
PyList_SET_ITEM(__pyx_t_1, 2, ((PyObject *)__pyx_n_s__http));
17471
20186
__Pyx_GIVEREF(((PyObject *)__pyx_n_s__http));
17472
__pyx_t_4 = __Pyx_GetName(__pyx_m, __pyx_n_s____all__); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17473
__Pyx_GOTREF(__pyx_t_4);
17474
__pyx_t_1 = PyNumber_InPlaceAdd(__pyx_t_4, ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17475
__Pyx_GOTREF(__pyx_t_1);
17477
/* "/home/denis/work/gevent/gevent/evhttp.pxi":1
17478
* __all__ += ['http_request', 'http_connection', 'http'] # <<<<<<<<<<<<<<
17480
* EVHTTP_REQUEST = 0
17482
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
17483
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17484
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____all__, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17485
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
17487
/* "/home/denis/work/gevent/gevent/evhttp.pxi":3
17488
* __all__ += ['http_request', 'http_connection', 'http']
20187
__pyx_t_8 = PyNumber_InPlaceAdd(__pyx_t_3, ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20188
__Pyx_GOTREF(__pyx_t_8);
20189
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20190
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20191
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____all__, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20192
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
20194
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":6
20195
* cdef void emit_ifdef_modern "#if defined(LIBEVENT_HTTP_MODERN) //" ()
17490
20197
* EVHTTP_REQUEST = 0 # <<<<<<<<<<<<<<
17491
20198
* EVHTTP_RESPONSE = 1
17494
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQUEST, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 3; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20201
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQUEST, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17496
/* "/home/denis/work/gevent/gevent/evhttp.pxi":4
20203
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":7
17498
20205
* EVHTTP_REQUEST = 0
17499
20206
* EVHTTP_RESPONSE = 1 # <<<<<<<<<<<<<<
17501
* EVHTTP_REQ_GET = 0
17503
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_RESPONSE, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17505
/* "/home/denis/work/gevent/gevent/evhttp.pxi":6
17506
* EVHTTP_RESPONSE = 1
17508
* EVHTTP_REQ_GET = 0 # <<<<<<<<<<<<<<
17509
* EVHTTP_REQ_POST = 1
17510
* EVHTTP_REQ_HEAD = 2
17512
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_GET, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17514
/* "/home/denis/work/gevent/gevent/evhttp.pxi":7
17516
* EVHTTP_REQ_GET = 0
17517
* EVHTTP_REQ_POST = 1 # <<<<<<<<<<<<<<
17518
* EVHTTP_REQ_HEAD = 2
17519
* EVHTTP_REQ_PUT = 3
17521
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_POST, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17523
/* "/home/denis/work/gevent/gevent/evhttp.pxi":8
17524
* EVHTTP_REQ_GET = 0
17525
* EVHTTP_REQ_POST = 1
17526
* EVHTTP_REQ_HEAD = 2 # <<<<<<<<<<<<<<
17527
* EVHTTP_REQ_PUT = 3
17528
* EVHTTP_REQ_DELETE = 4
17530
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_HEAD, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17532
/* "/home/denis/work/gevent/gevent/evhttp.pxi":9
17533
* EVHTTP_REQ_POST = 1
17534
* EVHTTP_REQ_HEAD = 2
17535
* EVHTTP_REQ_PUT = 3 # <<<<<<<<<<<<<<
17536
* EVHTTP_REQ_DELETE = 4
17539
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_PUT, __pyx_int_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17541
/* "/home/denis/work/gevent/gevent/evhttp.pxi":10
17542
* EVHTTP_REQ_HEAD = 2
17543
* EVHTTP_REQ_PUT = 3
17544
* EVHTTP_REQ_DELETE = 4 # <<<<<<<<<<<<<<
17546
* HTTP_method2name = { 0: 'GET', 1: 'POST', 2: 'HEAD', 3: 'PUT', 4: 'DELETE' }
17548
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_DELETE, __pyx_int_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17550
/* "/home/denis/work/gevent/gevent/evhttp.pxi":12
17551
* EVHTTP_REQ_DELETE = 4
17553
* HTTP_method2name = { 0: 'GET', 1: 'POST', 2: 'HEAD', 3: 'PUT', 4: 'DELETE' } # <<<<<<<<<<<<<<
17555
* cdef extern from *:
17557
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17558
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17559
if (PyDict_SetItem(__pyx_t_1, __pyx_int_0, ((PyObject *)__pyx_n_s__GET)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17560
if (PyDict_SetItem(__pyx_t_1, __pyx_int_1, ((PyObject *)__pyx_n_s__POST)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17561
if (PyDict_SetItem(__pyx_t_1, __pyx_int_2, ((PyObject *)__pyx_n_s__HEAD)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17562
if (PyDict_SetItem(__pyx_t_1, __pyx_int_3, ((PyObject *)__pyx_n_s__PUT)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17563
if (PyDict_SetItem(__pyx_t_1, __pyx_int_4, ((PyObject *)__pyx_n_s__DELETE)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17564
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HTTP_method2name, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17565
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
17567
/* "/home/denis/work/gevent/gevent/evhttp.pxi":96
20210
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_RESPONSE, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20212
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":10
20215
* emit_ifdef_modern() # <<<<<<<<<<<<<<
20217
* EVHTTP_REQ_GET = 1 << 0
20219
#if defined(LIBEVENT_HTTP_MODERN) //();
20221
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":12
20222
* emit_ifdef_modern()
20224
* EVHTTP_REQ_GET = 1 << 0 # <<<<<<<<<<<<<<
20225
* EVHTTP_REQ_POST = 1 << 1
20226
* EVHTTP_REQ_HEAD = 1 << 2
20228
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_GET, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20230
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":13
20232
* EVHTTP_REQ_GET = 1 << 0
20233
* EVHTTP_REQ_POST = 1 << 1 # <<<<<<<<<<<<<<
20234
* EVHTTP_REQ_HEAD = 1 << 2
20235
* EVHTTP_REQ_PUT = 1 << 3
20237
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_POST, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20239
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":14
20240
* EVHTTP_REQ_GET = 1 << 0
20241
* EVHTTP_REQ_POST = 1 << 1
20242
* EVHTTP_REQ_HEAD = 1 << 2 # <<<<<<<<<<<<<<
20243
* EVHTTP_REQ_PUT = 1 << 3
20244
* EVHTTP_REQ_DELETE = 1 << 4
20246
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_HEAD, __pyx_int_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20248
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":15
20249
* EVHTTP_REQ_POST = 1 << 1
20250
* EVHTTP_REQ_HEAD = 1 << 2
20251
* EVHTTP_REQ_PUT = 1 << 3 # <<<<<<<<<<<<<<
20252
* EVHTTP_REQ_DELETE = 1 << 4
20253
* EVHTTP_REQ_OPTIONS = 1 << 5
20255
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_PUT, __pyx_int_8) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20257
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":16
20258
* EVHTTP_REQ_HEAD = 1 << 2
20259
* EVHTTP_REQ_PUT = 1 << 3
20260
* EVHTTP_REQ_DELETE = 1 << 4 # <<<<<<<<<<<<<<
20261
* EVHTTP_REQ_OPTIONS = 1 << 5
20262
* EVHTTP_REQ_TRACE = 1 << 6
20264
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_DELETE, __pyx_int_16) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20266
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":17
20267
* EVHTTP_REQ_PUT = 1 << 3
20268
* EVHTTP_REQ_DELETE = 1 << 4
20269
* EVHTTP_REQ_OPTIONS = 1 << 5 # <<<<<<<<<<<<<<
20270
* EVHTTP_REQ_TRACE = 1 << 6
20271
* EVHTTP_REQ_CONNECT = 1 << 7
20273
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_OPTIONS, __pyx_int_32) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 17; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20275
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":18
20276
* EVHTTP_REQ_DELETE = 1 << 4
20277
* EVHTTP_REQ_OPTIONS = 1 << 5
20278
* EVHTTP_REQ_TRACE = 1 << 6 # <<<<<<<<<<<<<<
20279
* EVHTTP_REQ_CONNECT = 1 << 7
20280
* EVHTTP_REQ_PATCH = 1 << 8
20282
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_TRACE, __pyx_int_64) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20284
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":19
20285
* EVHTTP_REQ_OPTIONS = 1 << 5
20286
* EVHTTP_REQ_TRACE = 1 << 6
20287
* EVHTTP_REQ_CONNECT = 1 << 7 # <<<<<<<<<<<<<<
20288
* EVHTTP_REQ_PATCH = 1 << 8
20291
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_CONNECT, __pyx_int_128) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 19; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20293
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":20
20294
* EVHTTP_REQ_TRACE = 1 << 6
20295
* EVHTTP_REQ_CONNECT = 1 << 7
20296
* EVHTTP_REQ_PATCH = 1 << 8 # <<<<<<<<<<<<<<
20298
* HTTP_method2name = {
20300
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_PATCH, __pyx_int_256) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20302
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":22
20303
* EVHTTP_REQ_PATCH = 1 << 8
20305
* HTTP_method2name = { # <<<<<<<<<<<<<<
20306
* EVHTTP_REQ_GET: "GET",
20307
* EVHTTP_REQ_POST: "POST",
20309
__pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20310
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
20312
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":23
20314
* HTTP_method2name = {
20315
* EVHTTP_REQ_GET: "GET", # <<<<<<<<<<<<<<
20316
* EVHTTP_REQ_POST: "POST",
20317
* EVHTTP_REQ_HEAD: "HEAD",
20319
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_GET); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20320
__Pyx_GOTREF(__pyx_t_1);
20321
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__GET)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20322
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20324
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":24
20325
* HTTP_method2name = {
20326
* EVHTTP_REQ_GET: "GET",
20327
* EVHTTP_REQ_POST: "POST", # <<<<<<<<<<<<<<
20328
* EVHTTP_REQ_HEAD: "HEAD",
20329
* EVHTTP_REQ_PUT: "PUT",
20331
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_POST); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 24; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20332
__Pyx_GOTREF(__pyx_t_1);
20333
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__POST)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20334
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20336
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":25
20337
* EVHTTP_REQ_GET: "GET",
20338
* EVHTTP_REQ_POST: "POST",
20339
* EVHTTP_REQ_HEAD: "HEAD", # <<<<<<<<<<<<<<
20340
* EVHTTP_REQ_PUT: "PUT",
20341
* EVHTTP_REQ_DELETE: "DELETE",
20343
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_HEAD); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20344
__Pyx_GOTREF(__pyx_t_1);
20345
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__HEAD)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20346
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20348
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":26
20349
* EVHTTP_REQ_POST: "POST",
20350
* EVHTTP_REQ_HEAD: "HEAD",
20351
* EVHTTP_REQ_PUT: "PUT", # <<<<<<<<<<<<<<
20352
* EVHTTP_REQ_DELETE: "DELETE",
20353
* EVHTTP_REQ_OPTIONS: "OPTIONS",
20355
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_PUT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20356
__Pyx_GOTREF(__pyx_t_1);
20357
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__PUT)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20358
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20360
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":27
20361
* EVHTTP_REQ_HEAD: "HEAD",
20362
* EVHTTP_REQ_PUT: "PUT",
20363
* EVHTTP_REQ_DELETE: "DELETE", # <<<<<<<<<<<<<<
20364
* EVHTTP_REQ_OPTIONS: "OPTIONS",
20365
* EVHTTP_REQ_TRACE: "TRACE",
20367
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_DELETE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 27; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20368
__Pyx_GOTREF(__pyx_t_1);
20369
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__DELETE)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20370
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20372
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":28
20373
* EVHTTP_REQ_PUT: "PUT",
20374
* EVHTTP_REQ_DELETE: "DELETE",
20375
* EVHTTP_REQ_OPTIONS: "OPTIONS", # <<<<<<<<<<<<<<
20376
* EVHTTP_REQ_TRACE: "TRACE",
20377
* EVHTTP_REQ_CONNECT: "CONNECT",
20379
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_OPTIONS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20380
__Pyx_GOTREF(__pyx_t_1);
20381
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__OPTIONS)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20382
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20384
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":29
20385
* EVHTTP_REQ_DELETE: "DELETE",
20386
* EVHTTP_REQ_OPTIONS: "OPTIONS",
20387
* EVHTTP_REQ_TRACE: "TRACE", # <<<<<<<<<<<<<<
20388
* EVHTTP_REQ_CONNECT: "CONNECT",
20389
* EVHTTP_REQ_PATCH: "PATCH"
20391
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_TRACE); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20392
__Pyx_GOTREF(__pyx_t_1);
20393
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__TRACE)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20394
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20396
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":30
20397
* EVHTTP_REQ_OPTIONS: "OPTIONS",
20398
* EVHTTP_REQ_TRACE: "TRACE",
20399
* EVHTTP_REQ_CONNECT: "CONNECT", # <<<<<<<<<<<<<<
20400
* EVHTTP_REQ_PATCH: "PATCH"
20403
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_CONNECT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20404
__Pyx_GOTREF(__pyx_t_1);
20405
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__CONNECT)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20406
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20408
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":31
20409
* EVHTTP_REQ_TRACE: "TRACE",
20410
* EVHTTP_REQ_CONNECT: "CONNECT",
20411
* EVHTTP_REQ_PATCH: "PATCH" # <<<<<<<<<<<<<<
20415
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_PATCH); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20416
__Pyx_GOTREF(__pyx_t_1);
20417
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__PATCH)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20418
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20419
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HTTP_method2name, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 22; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20420
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
20422
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":34
20425
* emit_else() # <<<<<<<<<<<<<<
20427
* EVHTTP_REQ_GET = 0
20431
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":36
20434
* EVHTTP_REQ_GET = 0 # <<<<<<<<<<<<<<
20435
* EVHTTP_REQ_POST = 1
20436
* EVHTTP_REQ_HEAD = 2
20438
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_GET, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20440
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":37
20442
* EVHTTP_REQ_GET = 0
20443
* EVHTTP_REQ_POST = 1 # <<<<<<<<<<<<<<
20444
* EVHTTP_REQ_HEAD = 2
20447
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_POST, __pyx_int_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20449
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":38
20450
* EVHTTP_REQ_GET = 0
20451
* EVHTTP_REQ_POST = 1
20452
* EVHTTP_REQ_HEAD = 2 # <<<<<<<<<<<<<<
20454
* HTTP_method2name = {
20456
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__EVHTTP_REQ_HEAD, __pyx_int_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20458
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":40
20459
* EVHTTP_REQ_HEAD = 2
20461
* HTTP_method2name = { # <<<<<<<<<<<<<<
20462
* EVHTTP_REQ_GET: "GET",
20463
* EVHTTP_REQ_POST: "POST",
20465
__pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20466
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
20468
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":41
20470
* HTTP_method2name = {
20471
* EVHTTP_REQ_GET: "GET", # <<<<<<<<<<<<<<
20472
* EVHTTP_REQ_POST: "POST",
20473
* EVHTTP_REQ_HEAD: "HEAD",
20475
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_GET); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20476
__Pyx_GOTREF(__pyx_t_1);
20477
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__GET)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20478
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20480
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":42
20481
* HTTP_method2name = {
20482
* EVHTTP_REQ_GET: "GET",
20483
* EVHTTP_REQ_POST: "POST", # <<<<<<<<<<<<<<
20484
* EVHTTP_REQ_HEAD: "HEAD",
20487
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_POST); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20488
__Pyx_GOTREF(__pyx_t_1);
20489
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__POST)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20490
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20492
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":43
20493
* EVHTTP_REQ_GET: "GET",
20494
* EVHTTP_REQ_POST: "POST",
20495
* EVHTTP_REQ_HEAD: "HEAD", # <<<<<<<<<<<<<<
20499
__pyx_t_1 = __Pyx_GetName(__pyx_m, __pyx_n_s__EVHTTP_REQ_HEAD); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20500
__Pyx_GOTREF(__pyx_t_1);
20501
if (PyDict_SetItem(__pyx_t_8, __pyx_t_1, ((PyObject *)__pyx_n_s__HEAD)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20502
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
20503
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HTTP_method2name, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20504
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
20506
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":46
20509
* emit_endif() # <<<<<<<<<<<<<<
20515
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":132
17570
20518
* class ObjectDeleted(AttributeError): # <<<<<<<<<<<<<<
17574
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20522
__pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20523
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
20524
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17575
20525
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17576
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17577
__Pyx_GOTREF(__pyx_t_4);
17578
20526
__Pyx_INCREF(__pyx_builtin_AttributeError);
17579
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_builtin_AttributeError);
20527
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_builtin_AttributeError);
17580
20528
__Pyx_GIVEREF(__pyx_builtin_AttributeError);
17581
__pyx_t_3 = __Pyx_CreateClass(__pyx_t_4, ((PyObject *)__pyx_t_1), __pyx_n_s__ObjectDeleted, "gevent.core"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20529
__pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_8), __pyx_n_s__ObjectDeleted, __pyx_n_s_62); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17582
20530
__Pyx_GOTREF(__pyx_t_3);
17583
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17584
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ObjectDeleted, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20531
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20532
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__ObjectDeleted, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17585
20533
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17586
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20534
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
17588
/* "/home/denis/work/gevent/gevent/evhttp.pxi":99
20536
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":136
17591
20539
* class HttpRequestDeleted(ObjectDeleted): # <<<<<<<<<<<<<<
17592
20540
* """Raised when an attribute is accessed of http_request instance whose _obj is 0"""
17595
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20543
__pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20544
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
20545
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__ObjectDeleted); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20546
__Pyx_GOTREF(__pyx_t_3);
20547
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17596
20548
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17597
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__ObjectDeleted); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17598
__Pyx_GOTREF(__pyx_t_3);
17599
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17600
__Pyx_GOTREF(__pyx_t_4);
17601
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
20549
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
17602
20550
__Pyx_GIVEREF(__pyx_t_3);
17603
20551
__pyx_t_3 = 0;
17604
if (PyDict_SetItemString(((PyObject *)__pyx_t_1), "__doc__", ((PyObject *)__pyx_kp_s_57)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17605
__pyx_t_3 = __Pyx_CreateClass(__pyx_t_4, ((PyObject *)__pyx_t_1), __pyx_n_s__HttpRequestDeleted, "gevent.core"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20552
if (PyDict_SetItemString(((PyObject *)__pyx_t_8), "__doc__", ((PyObject *)__pyx_kp_s_68)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20553
__pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_8), __pyx_n_s__HttpRequestDeleted, __pyx_n_s_62); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17606
20554
__Pyx_GOTREF(__pyx_t_3);
17607
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17608
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HttpRequestDeleted, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20555
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20556
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__HttpRequestDeleted, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17609
20557
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17610
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20558
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
17612
/* "/home/denis/work/gevent/gevent/evhttp.pxi":102
17613
* """Raised when an attribute is accessed of http_request instance whose _obj is 0"""
20560
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":140
17615
20563
* class HttpConnectionDeleted(ObjectDeleted): # <<<<<<<<<<<<<<
17616
20564
* """Raised when an attribute is accessed of http_connection instance whose _obj is 0"""
17619
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20567
__pyx_t_8 = PyDict_New(); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20568
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
20569
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__ObjectDeleted); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20570
__Pyx_GOTREF(__pyx_t_3);
20571
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17620
20572
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17621
__pyx_t_3 = __Pyx_GetName(__pyx_m, __pyx_n_s__ObjectDeleted); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17622
__Pyx_GOTREF(__pyx_t_3);
17623
__pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17624
__Pyx_GOTREF(__pyx_t_4);
17625
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
20573
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
17626
20574
__Pyx_GIVEREF(__pyx_t_3);
17627
20575
__pyx_t_3 = 0;
17628
if (PyDict_SetItemString(((PyObject *)__pyx_t_1), "__doc__", ((PyObject *)__pyx_kp_s_58)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17629
__pyx_t_3 = __Pyx_CreateClass(__pyx_t_4, ((PyObject *)__pyx_t_1), __pyx_n_s_32, "gevent.core"); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20576
if (PyDict_SetItemString(((PyObject *)__pyx_t_8), "__doc__", ((PyObject *)__pyx_kp_s_69)) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20577
__pyx_t_3 = __Pyx_CreateClass(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_8), __pyx_n_s_38, __pyx_n_s_62); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17630
20578
__Pyx_GOTREF(__pyx_t_3);
17631
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17632
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_32, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17633
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17634
20579
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
17636
/* "/home/denis/work/gevent/gevent/core.pyx":1
20580
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_38, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20581
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20582
__Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
20584
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":403
20585
* cdef public object default_response_headers
20587
* def __init__(self, size_t obj, object default_response_headers=[]): # <<<<<<<<<<<<<<
20588
* http_request_base.__init__(self, obj)
20589
* self.default_response_headers = default_response_headers
20591
__pyx_t_8 = PyList_New(0); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20592
__Pyx_GOTREF(((PyObject *)__pyx_t_8));
20593
__pyx_k_33 = ((PyObject *)__pyx_t_8);
20594
__Pyx_GIVEREF(__pyx_t_8);
20597
/* "/home/denis/tmp/gevent-0.13/gevent/evhttp.pxi":515
20600
* def new(cls, char* address, unsigned short port): # <<<<<<<<<<<<<<
20601
* cdef void* ptr = evhttp_connection_new(address, port)
20604
__pyx_t_8 = __Pyx_GetName((PyObject *)__pyx_ptype_6gevent_4core_http_connection, __pyx_n_s__new); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20605
__Pyx_GOTREF(__pyx_t_8);
20606
__pyx_t_3 = __Pyx_Method_ClassMethod(__pyx_t_8); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20607
__Pyx_GOTREF(__pyx_t_3);
20608
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
20609
if (PyDict_SetItem((PyObject *)__pyx_ptype_6gevent_4core_http_connection->tp_dict, __pyx_n_s__new, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20610
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20611
PyType_Modified(__pyx_ptype_6gevent_4core_http_connection);
20613
/* "gevent/core.pyx":466
20614
* include "evhttp.pxi"
20616
* def set_exc_info(object type, object value): # <<<<<<<<<<<<<<
20617
* cdef PyThreadState* tstate = PyThreadState_GET()
20618
* Py_XDECREF(tstate.exc_type)
20620
__pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_6gevent_4core_14set_exc_info, NULL, __pyx_n_s_62); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20621
__Pyx_GOTREF(__pyx_t_3);
20622
if (PyObject_SetAttr(__pyx_m, __pyx_n_s__set_exc_info, __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20623
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
20625
/* "gevent/core.pyx":1
17637
20626
* # # <<<<<<<<<<<<<<
17638
20627
* # event.pyx
17641
__pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17642
__Pyx_GOTREF(((PyObject *)__pyx_t_1));
17643
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__event); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17644
__Pyx_GOTREF(__pyx_t_3);
17645
__pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__add); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17646
__Pyx_GOTREF(__pyx_t_4);
17647
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17648
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17649
__Pyx_GOTREF(__pyx_t_3);
17650
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17651
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_59), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17652
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17653
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__event); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17654
__Pyx_GOTREF(__pyx_t_3);
17655
__pyx_t_4 = PyObject_GetAttr(__pyx_t_3, __pyx_n_s__cancel); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17656
__Pyx_GOTREF(__pyx_t_4);
17657
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17658
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17659
__Pyx_GOTREF(__pyx_t_3);
17660
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17661
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_60), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17662
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17663
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__init); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17664
__Pyx_GOTREF(__pyx_t_3);
17665
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17666
__Pyx_GOTREF(__pyx_t_4);
17667
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17668
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_61), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17669
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17670
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__dispatch); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17671
__Pyx_GOTREF(__pyx_t_4);
17672
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17673
__Pyx_GOTREF(__pyx_t_3);
17674
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17675
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_62), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17676
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17677
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__loop); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17678
__Pyx_GOTREF(__pyx_t_3);
17679
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17680
__Pyx_GOTREF(__pyx_t_4);
17681
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17682
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_63), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17683
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17684
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__get_version); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17685
__Pyx_GOTREF(__pyx_t_4);
17686
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17687
__Pyx_GOTREF(__pyx_t_3);
17688
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17689
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_64), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17690
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17691
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__get_method); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17692
__Pyx_GOTREF(__pyx_t_3);
17693
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17694
__Pyx_GOTREF(__pyx_t_4);
17695
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17696
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_65), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17697
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17698
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__get_header_version); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17699
__Pyx_GOTREF(__pyx_t_4);
17700
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17701
__Pyx_GOTREF(__pyx_t_3);
17702
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17703
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_66), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17704
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17705
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__reinit); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17706
__Pyx_GOTREF(__pyx_t_3);
17707
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17708
__Pyx_GOTREF(__pyx_t_4);
17709
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17710
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_67), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17711
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17712
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__dns_init); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17713
__Pyx_GOTREF(__pyx_t_4);
17714
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17715
__Pyx_GOTREF(__pyx_t_3);
17716
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17717
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_68), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17718
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17719
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__dns_shutdown); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17720
__Pyx_GOTREF(__pyx_t_3);
17721
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17722
__Pyx_GOTREF(__pyx_t_4);
17723
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17724
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_69), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17725
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17726
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__dns_resolve_ipv4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17727
__Pyx_GOTREF(__pyx_t_4);
17728
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17729
__Pyx_GOTREF(__pyx_t_3);
17730
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17731
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_70), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17732
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17733
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s__dns_resolve_ipv6); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17734
__Pyx_GOTREF(__pyx_t_3);
17735
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17736
__Pyx_GOTREF(__pyx_t_4);
17737
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17738
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_71), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17739
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17740
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__dns_resolve_reverse); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17741
__Pyx_GOTREF(__pyx_t_4);
17742
__pyx_t_3 = __Pyx_GetAttrString(__pyx_t_4, "__doc__");
17743
__Pyx_GOTREF(__pyx_t_3);
17744
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17745
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_72), __pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17746
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17747
__pyx_t_3 = PyObject_GetAttr(__pyx_m, __pyx_n_s_53); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17748
__Pyx_GOTREF(__pyx_t_3);
17749
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17750
__Pyx_GOTREF(__pyx_t_4);
17751
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17752
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_73), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17753
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17754
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__buffer); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17755
__Pyx_GOTREF(__pyx_t_4);
17756
__pyx_t_3 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__read); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17757
__Pyx_GOTREF(__pyx_t_3);
17758
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17759
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17760
__Pyx_GOTREF(__pyx_t_4);
17761
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17762
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_74), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17763
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17764
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__http_request); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17765
__Pyx_GOTREF(__pyx_t_4);
17766
__pyx_t_3 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s__remove_input_header); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17767
__Pyx_GOTREF(__pyx_t_3);
17768
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17769
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17770
__Pyx_GOTREF(__pyx_t_4);
17771
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17772
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_75), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17773
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17774
__pyx_t_4 = PyObject_GetAttr(__pyx_m, __pyx_n_s__http_request); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17775
__Pyx_GOTREF(__pyx_t_4);
17776
__pyx_t_3 = PyObject_GetAttr(__pyx_t_4, __pyx_n_s_77); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17777
__Pyx_GOTREF(__pyx_t_3);
17778
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17779
__pyx_t_4 = __Pyx_GetAttrString(__pyx_t_3, "__doc__");
17780
__Pyx_GOTREF(__pyx_t_4);
17781
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
17782
if (PyDict_SetItem(__pyx_t_1, ((PyObject *)__pyx_kp_u_76), __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17783
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
17784
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
17785
__Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
20630
__pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20631
__Pyx_GOTREF(((PyObject *)__pyx_t_3));
20632
if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
20633
__Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
17786
20634
goto __pyx_L0;
17787
20635
__pyx_L1_error:;
17788
20636
__Pyx_XDECREF(__pyx_t_1);
17789
20637
__Pyx_XDECREF(__pyx_t_2);
17790
20638
__Pyx_XDECREF(__pyx_t_3);
17791
__Pyx_XDECREF(__pyx_t_4);
20639
__Pyx_XDECREF(__pyx_t_8);
17792
20640
if (__pyx_m) {
17793
20641
__Pyx_AddTraceback("init gevent.core");
17794
20642
Py_DECREF(__pyx_m); __pyx_m = 0;