src/http/modules/download/ngx_http_download_module.h File Reference

Go to the source code of this file.

Data Structures

struct  ngx_http_download_conn_s
 Download structure. More...
struct  ngx_http_download_conf_t
 Download configuration. More...

Defines

#define BUFFER_SIZE   4096

Typedefs

typedef struct
ngx_http_download_conn_s 
ngx_http_download_conn_t
typedef void(* ngx_http_download_conn_handler_pt )(ngx_http_download_conn_t *conn)

Functions

ngx_http_download_conn_tngx_http_download_create_new ()
ngx_int_t ngx_http_download_enqueue (ngx_http_download_conn_t *conn)
 Enqueues download, when finished done_handler will be called.
ngx_int_t ngx_http_download_parse_url (ngx_str_t *url, ngx_http_download_conn_t *conn)
 Parses url and put all required data to download structure.
void ngx_http_download_cleanup (ngx_http_download_conn_t *conn)
 Cancel download and free all allocated resources.

Define Documentation

#define BUFFER_SIZE   4096

Typedef Documentation

Definition at line 28 of file ngx_http_download_module.h.

Definition at line 27 of file ngx_http_download_module.h.


Function Documentation

void ngx_http_download_cleanup ( ngx_http_download_conn_t conn  ) 
ngx_http_download_conn_t* ngx_http_download_create_new (  ) 
ngx_int_t ngx_http_download_enqueue ( ngx_http_download_conn_t conn  ) 
ngx_int_t ngx_http_download_parse_url ( ngx_str_t *  url,
ngx_http_download_conn_t conn 
)

Parses url and put all required data to download structure.

Parameters:
url correct url, ex. http://example.com/file.php?a=1
conn initialized download structure
Returns:
NGX_OK or NGX_ERROR on error

Definition at line 255 of file ngx_http_download_module.c.

References ngx_http_download_conn_s::err, ngx_http_download_conn_s::host, ngx_http_download_conn_s::pool, ngx_http_download_conn_s::port, and ngx_http_download_conn_s::uri.

Referenced by ngx_http_xslt2_xml_get_external_stylesheet(), and ngx_http_xxslt_parse_get_external_include().


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