ne_request.h   ne_request.h 
skipping to change at line 50 skipping to change at line 50
#define NE_REDIRECT (9) /* See ne_redirect.h */ #define NE_REDIRECT (9) /* See ne_redirect.h */
/* FIXME: remove this */ /* FIXME: remove this */
#define EOL "\r\n" #define EOL "\r\n"
/* Opaque object representing a single HTTP request. */ /* Opaque object representing a single HTTP request. */
typedef struct ne_request_s ne_request; typedef struct ne_request_s ne_request;
/***** Request Handling *****/ /***** Request Handling *****/
/* Create a request in session 'sess', with given method and path. */ /* Create a request in session 'sess', with given method and path.
* 'path' must conform to the 'abs_path' grammar in RFC2396, with an
* optional "? query" part, and MUST be URI-escaped by the caller. */
ne_request *ne_request_create(ne_session *sess, ne_request *ne_request_create(ne_session *sess,
const char *method, const char *path); const char *method, const char *path);
/* 'buffer' will be sent as the request body with given request. */ /* 'buffer' will be sent as the request body with given request. */
void ne_set_request_body_buffer(ne_request *req, const char *buffer, void ne_set_request_body_buffer(ne_request *req, const char *buffer,
size_t size); size_t size);
/* Send the contents of a file as the request body; 'fd' must be a /* Send the contents of a file as the request body; 'fd' must be a
* file descriptor of an open, seekable file. Current file offset of * file descriptor of an open, seekable file. Current file offset of
* fd is not retained (and ignored: the file is read from the the * fd is not retained (and ignored: the file is read from the the
 End of changes. 1 change blocks. 
1 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/