require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&EVENT2_HTTP_H_INCLUDED_)) {
    eval 'sub EVENT2_HTTP_H_INCLUDED_ () {1;}' unless defined(&EVENT2_HTTP_H_INCLUDED_);
    require 'event2/util.ph';
    require 'event2/visibility.ph';
    if(defined(&__cplusplus)) {
    }
    eval 'sub HTTP_OK () {200;}' unless defined(&HTTP_OK);
    eval 'sub HTTP_NOCONTENT () {204;}' unless defined(&HTTP_NOCONTENT);
    eval 'sub HTTP_MOVEPERM () {301;}' unless defined(&HTTP_MOVEPERM);
    eval 'sub HTTP_MOVETEMP () {302;}' unless defined(&HTTP_MOVETEMP);
    eval 'sub HTTP_NOTMODIFIED () {304;}' unless defined(&HTTP_NOTMODIFIED);
    eval 'sub HTTP_BADREQUEST () {400;}' unless defined(&HTTP_BADREQUEST);
    eval 'sub HTTP_NOTFOUND () {404;}' unless defined(&HTTP_NOTFOUND);
    eval 'sub HTTP_BADMETHOD () {405;}' unless defined(&HTTP_BADMETHOD);
    eval 'sub HTTP_ENTITYTOOLARGE () {413;}' unless defined(&HTTP_ENTITYTOOLARGE);
    eval 'sub HTTP_EXPECTATIONFAILED () {417;}' unless defined(&HTTP_EXPECTATIONFAILED);
    eval 'sub HTTP_INTERNAL () {500;}' unless defined(&HTTP_INTERNAL);
    eval 'sub HTTP_NOTIMPLEMENTED () {501;}' unless defined(&HTTP_NOTIMPLEMENTED);
    eval 'sub HTTP_SERVUNAVAIL () {503;}' unless defined(&HTTP_SERVUNAVAIL);
    eval 'sub EVHTTP_SERVER_LINGERING_CLOSE () {0x1;}' unless defined(&EVHTTP_SERVER_LINGERING_CLOSE);
    eval("sub EVHTTP_REQ_GET () { 1<<0; }") unless defined(&EVHTTP_REQ_GET);
    eval("sub EVHTTP_REQ_POST () { 1<<1; }") unless defined(&EVHTTP_REQ_POST);
    eval("sub EVHTTP_REQ_HEAD () { 1<<2; }") unless defined(&EVHTTP_REQ_HEAD);
    eval("sub EVHTTP_REQ_PUT () { 1<<3; }") unless defined(&EVHTTP_REQ_PUT);
    eval("sub EVHTTP_REQ_DELETE () { 1<<4; }") unless defined(&EVHTTP_REQ_DELETE);
    eval("sub EVHTTP_REQ_OPTIONS () { 1<<5; }") unless defined(&EVHTTP_REQ_OPTIONS);
    eval("sub EVHTTP_REQ_TRACE () { 1<<6; }") unless defined(&EVHTTP_REQ_TRACE);
    eval("sub EVHTTP_REQ_CONNECT () { 1<<7; }") unless defined(&EVHTTP_REQ_CONNECT);
    eval("sub EVHTTP_REQ_PATCH () { 1<<8; }") unless defined(&EVHTTP_REQ_PATCH);
    eval("sub EVHTTP_REQUEST () { 0; }") unless defined(&EVHTTP_REQUEST);
    eval("sub EVHTTP_RESPONSE () { 1; }") unless defined(&EVHTTP_RESPONSE);
    eval("sub EVREQ_HTTP_TIMEOUT () { 0; }") unless defined(&EVREQ_HTTP_TIMEOUT);
    eval("sub EVREQ_HTTP_EOF () { 1; }") unless defined(&EVREQ_HTTP_EOF);
    eval("sub EVREQ_HTTP_INVALID_HEADER () { 2; }") unless defined(&EVREQ_HTTP_INVALID_HEADER);
    eval("sub EVREQ_HTTP_BUFFER_ERROR () { 3; }") unless defined(&EVREQ_HTTP_BUFFER_ERROR);
    eval("sub EVREQ_HTTP_REQUEST_CANCEL () { 4; }") unless defined(&EVREQ_HTTP_REQUEST_CANCEL);
    eval("sub EVREQ_HTTP_DATA_TOO_LONG () { 5; }") unless defined(&EVREQ_HTTP_DATA_TOO_LONG);
    eval 'sub EVHTTP_CON_REUSE_CONNECTED_ADDR () {0x8;}' unless defined(&EVHTTP_CON_REUSE_CONNECTED_ADDR);
    eval 'sub EVHTTP_CON_READ_ON_WRITE_ERROR () {0x10;}' unless defined(&EVHTTP_CON_READ_ON_WRITE_ERROR);
    eval 'sub EVHTTP_CON_LINGERING_CLOSE () {0x20;}' unless defined(&EVHTTP_CON_LINGERING_CLOSE);
    eval 'sub EVHTTP_CON_PUBLIC_FLAGS_END () {0x100000;}' unless defined(&EVHTTP_CON_PUBLIC_FLAGS_END);
    eval 'sub EVHTTP_URI_NONCONFORMANT () {0x1;}' unless defined(&EVHTTP_URI_NONCONFORMANT);
    if(defined(&__cplusplus)) {
    }
}
1;
