- allow setting proxy to empty string, which ignores env
[m6w6/ext-http] / php_http_request_method_api.h
index 179e52e6fcea7c1db05acd49d3d268393e97e156..e93803a466b149a17f1c373f7ef922e07931cf82 100644 (file)
@@ -6,7 +6,7 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2005, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2007, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
@@ -15,7 +15,9 @@
 #ifndef PHP_HTTP_REQUEST_METHOD_API_H
 #define PHP_HTTP_REQUEST_METHOD_API_H
 
-typedef enum {
+typedef enum _http_request_method_t {
+       /* force the enum to be signed */
+       HTTP_NEG_REQUEST_METHOD =-1,
        HTTP_NO_REQUEST_METHOD  = 0,
        /* HTTP/1.1 */
        HTTP_GET                                = 1,
@@ -54,7 +56,7 @@ typedef enum {
 #define HTTP_MIN_REQUEST_METHOD (HTTP_NO_REQUEST_METHOD + 1)
 #define HTTP_CUSTOM_REQUEST_METHOD_START HTTP_MAX_REQUEST_METHOD
 
-typedef struct {
+typedef struct _http_request_method_entry_t {
        char *name;
        char *cnst;
 } http_request_method_entry;