Added support for reading raw PUT/POST data from HTTP request

This commit is contained in:
Martin Willi
2010-05-27 09:30:14 +02:00
parent f00a101590
commit ddf29f5b07
2 changed files with 18 additions and 0 deletions
+9
View File
@@ -85,6 +85,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.
*/