diff options
Diffstat (limited to 'dep/gsoap/httppost.h')
-rw-r--r-- | dep/gsoap/httppost.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/dep/gsoap/httppost.h b/dep/gsoap/httppost.h index 6803286c9b7..9747ff0a923 100644 --- a/dep/gsoap/httppost.h +++ b/dep/gsoap/httppost.h @@ -1,15 +1,15 @@ /* - httppost.h + httppost.h - gSOAP HTTP POST plugin for non-SOAP payloads. + gSOAP HTTP POST plugin for non-SOAP payloads. - See httppost.c for instructions. + See httppost.c for instructions. - Revisions: - register multiple POST content handlers, each for a content type + Revisions: + register multiple POST content handlers, each for a content type gSOAP XML Web services tools -Copyright (C) 2004-2009, Robert van Engelen, Genivia, Inc. All Rights Reserved. +Copyright (C) 2000-2018, Robert van Engelen, Genivia, Inc. All Rights Reserved. -------------------------------------------------------------------------------- gSOAP public license. @@ -57,21 +57,24 @@ compiling, linking, and/or using OpenSSL is allowed. extern "C" { #endif -#define HTTP_POST_ID "HTTP-POST-1.1" /* plugin identification */ +#define HTTP_POST_ID "SOAP-HTTP-POST/2.2" /* plugin identification */ extern const char http_post_id[]; typedef int (*http_handler_t)(struct soap*); struct http_post_handlers -{ const char *type; +{ + const char *type; http_handler_t handler; }; /* This is the local plugin data shared among all copies of the soap struct: */ struct http_post_data -{ int (*fparsehdr)(struct soap*, const char*, const char*); /* to save and call the internal HTTP header parser */ +{ + int (*fparsehdr)(struct soap*, const char*, const char*); /* to save and call the internal HTTP header parser */ int (*fput)(struct soap*); /* to save */ + int (*fpatch)(struct soap*); /* to save */ int (*fdel)(struct soap*); /* to save */ struct http_post_handlers *handlers; /* the server-side POST content type handlers */ }; @@ -79,16 +82,16 @@ struct http_post_data /* the http post plugin, note: argument should be a table of type-handler pairs */ int http_post(struct soap*, struct soap_plugin*, void*); -/* a function to send HTTP POST, should be followd by a soap_send to transmit and soap_get_http_body to retrieve the HTTP body returned into an internal buffer */ +/* deprecated: use soap_POST instead */ int soap_post_connect(struct soap*, const char *endpoint, const char *action, const char *type); -/* a function to send HTTP PUT, should be followed by a soap_send to transmit data */ +/* deprecated: use soap_PUT instead */ int soap_put_connect(struct soap*, const char *endpoint, const char *action, const char *type); -/* a function to send HTTP DELETE */ -int soap_delete_connect(struct soap*, const char *endpoint, const char *action, const char *type); +/* deprecated: use soap_DELETE instead */ +int soap_delete_connect(struct soap*, const char *endpoint); -/* a function to retrieve the HTTP body into an internal buffer */ +/* deprecated: use soap_get_http_body instead */ int soap_http_body(struct soap*, char **buf, size_t *len); #ifdef __cplusplus |