ngx_http_download_conn_s Struct Reference

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

Detailed Description

Download structure.

Definition at line 32 of file ngx_http_download_module.h.


Field Documentation

args, ex. ?id=7

Definition at line 43 of file ngx_http_download_module.h.

optional error message

Definition at line 46 of file ngx_http_download_module.h.

Referenced by ngx_http_download_parse_url().

Definition at line 48 of file ngx_http_download_module.h.

ngx_peer_connection_t* ngx_http_download_conn_s::p

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

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().

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().


The documentation for this struct was generated from the following file:

Generated on Mon Oct 12 14:03:37 2009 for XXSLT by  doxygen 1.6.1