summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_compress_gzip.h
blob: e0c2dee230d8ff61ab9e91d40ce3c348f95f3a74 (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
/*
 * Copyright (C) Alejandro Colomar
 * Copyright (C) NGINX, Inc.
 */

#ifndef NXT_HTTP_COMPRESS_GZIP_H_INCLUDED_
#define NXT_HTTP_COMPRESS_GZIP_H_INCLUDED_


#include "nxt_auto_config.h"

#include "nxt_router.h"

#include "nxt_http.h"
#include "nxt_main.h"
#include "nxt_types.h"


#if defined(NXT_HAVE_ZLIB)
#define NXT_WITH_ZLIB  1
#else
#define NXT_WITH_ZLIB  0
#endif


nxt_int_t nxt_http_compress_gzip(nxt_task_t *task, nxt_http_request_t *r,
    nxt_http_compress_conf_t *conf);


#endif  /* NXT_HTTP_COMPRESS_GZIP_H_INCLUDED_ */