#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
ngx_http_mirror_loc_conf_t;
ngx_http_mirror_ctx_t;
static ngx_int_t ngx_http_mirror_handler(ngx_http_request_t *r);
static void ngx_http_mirror_body_handler(ngx_http_request_t *r);
static ngx_int_t ngx_http_mirror_handler_internal(ngx_http_request_t *r);
static void *ngx_http_mirror_create_loc_conf(ngx_conf_t *cf);
static char *ngx_http_mirror_merge_loc_conf(ngx_conf_t *cf, void *parent,
void *child);
static char *ngx_http_mirror(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
static ngx_int_t ngx_http_mirror_init(ngx_conf_t *cf);
static ngx_command_t ngx_http_mirror_commands[] = …;
static ngx_http_module_t ngx_http_mirror_module_ctx = …;
ngx_module_t ngx_http_mirror_module = …;
static ngx_int_t
ngx_http_mirror_handler(ngx_http_request_t *r)
{ … }
static void
ngx_http_mirror_body_handler(ngx_http_request_t *r)
{ … }
static ngx_int_t
ngx_http_mirror_handler_internal(ngx_http_request_t *r)
{ … }
static void *
ngx_http_mirror_create_loc_conf(ngx_conf_t *cf)
{ … }
static char *
ngx_http_mirror_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
{ … }
static char *
ngx_http_mirror(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
{ … }
static ngx_int_t
ngx_http_mirror_init(ngx_conf_t *cf)
{ … }