diff options
author | Martin Willi <martin@revosec.ch> | 2010-05-27 09:30:14 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-05-27 09:30:14 +0200 |
commit | ddf29f5b07cfb8c75381477de91435f12736f241 (patch) | |
tree | 721c2e3942ff2415a880d9248650e36ecbe837b8 /src/libfast/request.h | |
parent | f00a1015904c3718fa6a186d3e5a9b209227d76e (diff) | |
download | strongswan-ddf29f5b07cfb8c75381477de91435f12736f241.tar.bz2 strongswan-ddf29f5b07cfb8c75381477de91435f12736f241.tar.xz |
Added support for reading raw PUT/POST data from HTTP request
Diffstat (limited to 'src/libfast/request.h')
-rw-r--r-- | src/libfast/request.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libfast/request.h b/src/libfast/request.h index af0f8e4f5..9ca74a91e 100644 --- a/src/libfast/request.h +++ b/src/libfast/request.h @@ -86,6 +86,15 @@ struct request_t { char* (*get_query_data)(request_t *this, char *name); /** + * Read raw POST/PUT data from HTTP request. + * + * @param buf buffer to read data into + * @param len size of the supplied buffer + * @return number of bytes read, < 0 on error + */ + int (*read_data)(request_t *this, char *buf, int len); + + /** * Close the session and it's context after handling. */ void (*close_session)(request_t *this); |