Download structure. More...
#include <ngx_http_download_module.h>
Data Fields | |
ngx_http_request_t * | r |
request | |
u_char * | host |
host, ex. google.com | |
ngx_int_t | port |
port, ex. 80 | |
u_char * | uri |
uri, ex. /file.html | |
u_char * | args |
args, ex. ?id=7 | |
u_char * | err |
optional error message | |
u_char * | fulluri |
ngx_uint_t | connect_timeout |
unused | |
ngx_uint_t | read_timeout |
read timeout in ms | |
ngx_uint_t | write_timeout |
write timeout in ms | |
ngx_buf_t * | request |
request to send | |
ngx_peer_connection_t * | p |
ngx_buf_t * | buffer |
ngx_chain_t * | out_bufs |
output buffers | |
ngx_chain_t * | out_bufs_tail |
last output buffer | |
u_char * | body_start |
HTTP, this param pointer to body begin in first buffer. | |
ngx_int_t | status |
HTTP, returned status. | |
ngx_uint_t | response_length |
size of downloaded data (bytes) | |
ngx_int_t | terminated |
is download terminated | |
ngx_int_t | error |
download error code | |
ngx_int_t | done |
is download finished | |
ngx_pool_t * | pool |
ngx_pool_t * | rpool |
ngx_log_t * | log |
ngx_http_download_conn_handler_pt | done_handler |
function called when data are ready | |
void * | data |
pointer to your data |
Download structure.
Definition at line 32 of file ngx_http_download_module.h.
u_char* ngx_http_download_conn_s::args |
args, ex. ?id=7
Definition at line 43 of file ngx_http_download_module.h.
HTTP, this param pointer to body begin in first buffer.
Definition at line 68 of file ngx_http_download_module.h.
Referenced by ngx_http_download_finalize_connection(), ngx_http_download_parse_headers(), ngx_http_xslt2_xml_download_handler(), and ngx_http_xxslt_parse_download_handler().
ngx_buf_t* ngx_http_download_conn_s::buffer |
Definition at line 61 of file ngx_http_download_module.h.
Referenced by ngx_http_download_enqueue(), ngx_http_download_flush_buffer(), and ngx_http_download_read_handler().
ngx_uint_t ngx_http_download_conn_s::connect_timeout |
unused
Definition at line 51 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_new(), ngx_http_download_enqueue(), and ngx_http_xxslt_parse_get_external_include().
pointer to your data
Definition at line 90 of file ngx_http_download_module.h.
Referenced by ngx_http_download_enqueue(), ngx_http_download_read_handler(), ngx_http_download_write_handler(), ngx_http_xslt2_xml_download_handler(), ngx_http_xslt2_xml_get_external_stylesheet(), ngx_http_xxslt_parse_download_handler(), and ngx_http_xxslt_parse_get_external_include().
ngx_int_t ngx_http_download_conn_s::done |
is download finished
Definition at line 80 of file ngx_http_download_module.h.
Referenced by ngx_http_download_cleanup(), ngx_http_download_enqueue(), and ngx_http_download_finalize_connection().
function called when data are ready
Definition at line 87 of file ngx_http_download_module.h.
Referenced by ngx_http_download_cleanup(), ngx_http_download_finalize_connection(), ngx_http_xslt2_xml_get_external_stylesheet(), and ngx_http_xxslt_parse_get_external_include().
u_char* ngx_http_download_conn_s::err |
optional error message
Definition at line 46 of file ngx_http_download_module.h.
Referenced by ngx_http_download_parse_url().
ngx_int_t ngx_http_download_conn_s::error |
download error code
Definition at line 78 of file ngx_http_download_module.h.
Referenced by ngx_http_download_finalize_connection(), ngx_http_xslt2_xml_download_handler(), and ngx_http_xxslt_parse_download_handler().
Definition at line 48 of file ngx_http_download_module.h.
u_char* ngx_http_download_conn_s::host |
host, ex. google.com
Definition at line 37 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_request(), ngx_http_download_enqueue(), ngx_http_download_parse_url(), ngx_http_download_read_handler(), and ngx_http_download_write_handler().
ngx_log_t* ngx_http_download_conn_s::log |
Definition at line 84 of file ngx_http_download_module.h.
Referenced by ngx_http_download_cleanup(), ngx_http_download_create_new(), ngx_http_download_create_request(), ngx_http_download_enqueue(), ngx_http_download_finalize_connection(), ngx_http_download_read_handler(), and ngx_http_download_write_handler().
ngx_chain_t* ngx_http_download_conn_s::out_bufs |
output buffers
Definition at line 64 of file ngx_http_download_module.h.
Referenced by ngx_http_download_enqueue(), ngx_http_download_finalize_connection(), ngx_http_download_flush_buffer(), ngx_http_download_parse_headers(), ngx_http_xslt2_xml_download_handler(), and ngx_http_xxslt_parse_download_handler().
ngx_chain_t* ngx_http_download_conn_s::out_bufs_tail |
last output buffer
Definition at line 66 of file ngx_http_download_module.h.
Referenced by ngx_http_download_enqueue(), ngx_http_download_finalize_connection(), and ngx_http_download_flush_buffer().
ngx_peer_connection_t* ngx_http_download_conn_s::p |
Definition at line 60 of file ngx_http_download_module.h.
Referenced by ngx_http_download_cleanup(), ngx_http_download_enqueue(), ngx_http_download_finalize_connection(), ngx_http_download_read_handler(), and ngx_http_download_write_handler().
ngx_pool_t* ngx_http_download_conn_s::pool |
Definition at line 82 of file ngx_http_download_module.h.
Referenced by ngx_http_download_cleanup(), ngx_http_download_create_new(), ngx_http_download_create_request(), ngx_http_download_enqueue(), and ngx_http_download_parse_url().
ngx_int_t ngx_http_download_conn_s::port |
port, ex. 80
Definition at line 39 of file ngx_http_download_module.h.
Referenced by ngx_http_download_enqueue(), and ngx_http_download_parse_url().
ngx_http_request_t* ngx_http_download_conn_s::r |
request
Definition at line 34 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_new(), ngx_http_download_enqueue(), ngx_http_download_finalize_connection(), ngx_http_download_flush_buffer(), ngx_http_download_read_handler(), ngx_http_download_write_handler(), ngx_http_xslt2_xml_get_external_stylesheet(), and ngx_http_xxslt_parse_get_external_include().
ngx_uint_t ngx_http_download_conn_s::read_timeout |
read timeout in ms
Definition at line 53 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_new(), ngx_http_download_enqueue(), ngx_http_download_read_handler(), and ngx_http_xxslt_parse_get_external_include().
ngx_buf_t* ngx_http_download_conn_s::request |
request to send
Definition at line 58 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_request(), ngx_http_download_enqueue(), and ngx_http_download_write_handler().
ngx_uint_t ngx_http_download_conn_s::response_length |
size of downloaded data (bytes)
Definition at line 73 of file ngx_http_download_module.h.
Referenced by ngx_http_download_enqueue(), and ngx_http_download_read_handler().
ngx_pool_t* ngx_http_download_conn_s::rpool |
Definition at line 83 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_new(), ngx_http_download_enqueue(), ngx_http_download_flush_buffer(), and ngx_http_download_read_handler().
ngx_int_t ngx_http_download_conn_s::status |
HTTP, returned status.
Definition at line 70 of file ngx_http_download_module.h.
Referenced by ngx_http_download_parse_headers(), ngx_http_xslt2_xml_download_handler(), and ngx_http_xxslt_parse_download_handler().
ngx_int_t ngx_http_download_conn_s::terminated |
is download terminated
Definition at line 76 of file ngx_http_download_module.h.
Referenced by ngx_http_download_cleanup(), ngx_http_download_read_handler(), and ngx_http_download_write_handler().
u_char* ngx_http_download_conn_s::uri |
uri, ex. /file.html
Definition at line 41 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_request(), and ngx_http_download_parse_url().
ngx_uint_t ngx_http_download_conn_s::write_timeout |
write timeout in ms
Definition at line 55 of file ngx_http_download_module.h.
Referenced by ngx_http_download_create_new(), ngx_http_download_enqueue(), ngx_http_download_write_handler(), and ngx_http_xxslt_parse_get_external_include().