ne_request.h   ne_request.h 
skipping to change at line 145 skipping to change at line 145
* non-zero, blocks of the response body will be passed to the reader * non-zero, blocks of the response body will be passed to the reader
* callback as the response is read. After all the response body has * callback as the response is read. After all the response body has
* been read, the callback will be called with a 'len' argument of * been read, the callback will be called with a 'len' argument of
* zero. */ * zero. */
void ne_add_response_body_reader(ne_request *req, ne_accept_response accpt, void ne_add_response_body_reader(ne_request *req, ne_accept_response accpt,
ne_block_reader reader, void *userdata); ne_block_reader reader, void *userdata);
/* Retrieve the value of the response header field with given name; /* Retrieve the value of the response header field with given name;
* returns NULL if no response header with given name was found. The * returns NULL if no response header with given name was found. The
* return value is valid only until the next call to either * return value is valid only until the next call to either
* ne_request_create or ne_begin_request for this request. */ * ne_request_dispatch or ne_begin_request for this request. */
const char *ne_get_response_header(ne_request *req, const char *name); const char *ne_get_response_header(ne_request *req, const char *name);
/* Iterator interface for response headers: if passed a NULL cursor, /* Iterator interface for response headers: if passed a NULL cursor,
* returns the first header; if passed a non-NULL cursor pointer, * returns the first header; if passed a non-NULL cursor pointer,
* returns the next header. The return value is a cursor pointer: if * returns the next header. The return value is a cursor pointer: if
* it is non-NULL, *name and *value are set to the name and value of * it is non-NULL, *name and *value are set to the name and value of
* the header field. If the return value is NULL, no more headers are * the header field. If the return value is NULL, no more headers are
* found, *name and *value are undefined. * found, *name and *value are undefined.
* *
* The order in which response headers is returned is undefined. Both * The order in which response headers is returned is undefined. Both
skipping to change at line 252 skipping to change at line 252
const char *method, const char *requri) ; const char *method, const char *requri) ;
void ne_hook_create_request(ne_session *sess, void ne_hook_create_request(ne_session *sess,
ne_create_request_fn fn, void *userdata); ne_create_request_fn fn, void *userdata);
/* Hook called before the request is sent. 'header' is the raw HTTP /* Hook called before the request is sent. 'header' is the raw HTTP
* header before the trailing CRLF is added: add in more here. */ * header before the trailing CRLF is added: add in more here. */
typedef void (*ne_pre_send_fn)(ne_request *req, void *userdata, typedef void (*ne_pre_send_fn)(ne_request *req, void *userdata,
ne_buffer *header); ne_buffer *header);
void ne_hook_pre_send(ne_session *sess, ne_pre_send_fn fn, void *userdata); void ne_hook_pre_send(ne_session *sess, ne_pre_send_fn fn, void *userdata);
/* Hook called after the request is sent. May return: /* Hook called after the request is dispatched (request sent, and
* the entire response read). If an error occurred reading the response,
* this hook will not run. May return:
* NE_OK everything is okay * NE_OK everything is okay
* NE_RETRY try sending the request again. * NE_RETRY try sending the request again.
* anything else signifies an error, and the request is failed. The return * anything else signifies an error, and the request is failed. The return
* code is passed back the _dispatch caller, so the session error must * code is passed back the _dispatch caller, so the session error must
* also be set appropriately (ne_set_error). * also be set appropriately (ne_set_error).
*/ */
typedef int (*ne_post_send_fn)(ne_request *req, void *userdata, typedef int (*ne_post_send_fn)(ne_request *req, void *userdata,
const ne_status *status); const ne_status *status);
void ne_hook_post_send(ne_session *sess, ne_post_send_fn fn, void *userdata ); void ne_hook_post_send(ne_session *sess, ne_post_send_fn fn, void *userdata );
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 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/