summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_log_handler.h
blob: 2bda1f0d9925101bd73eafa945ad83ba3fc0a92b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _NGX_HTTP_LOG_HANDLER_H_INCLUDED_
#define _NGX_HTTP_LOG_HANDLER_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>


typedef struct {
    int   dummy;
} ngx_http_log_conf_t;


typedef enum {

    NGX_HTTP_LOG_HANDLER = 0,

#if 0
    /* the ngx_str_t field of the request */
    NGX_HTTP_LOG_REQUEST_STR_FIELD,

    /* the ngx_str_t field of the r->headers_in */
    NGX_HTTP_LOG_REQUEST_HEADER_IN_FIELD,

    /* the ngx_str_t field of the r->headers_out */
    NGX_HTTP_LOG_REQUEST_HEADER_OUT_FIELD,
#endif

} ngx_http_log_code_e;


typedef struct {
    int      type;
    int      size;
    char  *(*handler) (ngx_http_request_t *r, char *p);
    int      offset;
} ngx_http_log_code_t;


#endif /* _NGX_HTTP_LOG_HANDLER_H_INCLUDED_ */