~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/src/ngx_http_lua_headers.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry
  • Date: 2011-09-26 10:17:04 UTC
  • mfrom: (4.2.38 sid)
  • Revision ID: package-import@ubuntu.com-20110926101704-x8pxngiujrmkxnn3
Tags: 1.1.4-2
[Kartik Mistry]
* debian/modules:
  + Updated nginx-upload-progress module, Thanks to upstream for fixing issue
    that FTBFS nginx on kFreeBSD-* archs.
  + Updated nginx-lua module to latest upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* vim:set ft=c ts=4 sw=4 et fdm=marker: */
2
1
#ifndef NGX_HTTP_LUA_HEADERS_H
3
2
#define NGX_HTTP_LUA_HEADERS_H
4
3
 
5
4
 
6
 
#include <ngx_core.h>
7
 
#include <ngx_http.h>
8
 
 
9
 
typedef struct ngx_http_lua_header_val_s ngx_http_lua_header_val_t;
10
 
 
11
 
typedef ngx_int_t (*ngx_http_lua_set_header_pt)(ngx_http_request_t *r,
12
 
    ngx_http_lua_header_val_t *hv, ngx_str_t *value);
13
 
 
14
 
struct ngx_http_lua_header_val_s {
15
 
    ngx_http_complex_value_t                value;
16
 
    ngx_uint_t                              hash;
17
 
    ngx_str_t                               key;
18
 
    ngx_http_lua_set_header_pt              handler;
19
 
    ngx_uint_t                              offset;
20
 
    ngx_flag_t                              no_override;
21
 
};
22
 
 
23
 
typedef struct {
24
 
    ngx_str_t                               name;
25
 
    ngx_uint_t                              offset;
26
 
    ngx_http_lua_set_header_pt     handler;
27
 
 
28
 
} ngx_http_lua_set_header_t;
29
 
 
30
 
 
31
 
ngx_int_t ngx_http_lua_set_header(ngx_http_request_t *r, ngx_str_t key,
32
 
        ngx_str_t value, ngx_flag_t override);
33
 
 
34
 
 
35
 
#endif
 
5
#include "ngx_http_lua_common.h"
 
6
 
 
7
 
 
8
void ngx_http_lua_inject_resp_header_api(lua_State *L);
 
9
void ngx_http_lua_inject_req_header_api(lua_State *L);
 
10
 
 
11
 
 
12
#endif /* NGX_HTTP_LUA_HEADERS_H */
36
13