#include "httpd.h"
#include "http_core.h"
#include "http_log.h"
#include "apr_strings.h"
#include <brotli/encode.h>
Go to the source code of this file.
|
| static void * | create_server_config (apr_pool_t *p, server_rec *s) |
| |
| static const char * | set_filter_note (cmd_parms *cmd, void *dummy, const char *arg1, const char *arg2) |
| |
| static const char * | set_compression_quality (cmd_parms *cmd, void *dummy, const char *arg) |
| |
| static const char * | set_compression_lgwin (cmd_parms *cmd, void *dummy, const char *arg) |
| |
| static const char * | set_compression_lgblock (cmd_parms *cmd, void *dummy, const char *arg) |
| |
| static const char * | set_etag_mode (cmd_parms *cmd, void *dummy, const char *arg) |
| |
| static void * | alloc_func (void *opaque, size_t size) |
| |
| static void | free_func (void *opaque, void *block) |
| |
| static apr_status_t | cleanup_ctx (void *data) |
| |
| static brotli_ctx_t * | create_ctx (int quality, int lgwin, int lgblock, apr_bucket_alloc_t *alloc, apr_pool_t *pool) |
| |
| static apr_status_t | process_chunk (brotli_ctx_t *ctx, const void *data, apr_size_t len, ap_filter_t *f) |
| |
| static apr_status_t | flush (brotli_ctx_t *ctx, BrotliEncoderOperation op, ap_filter_t *f) |
| |
| static const char * | get_content_encoding (request_rec *r) |
| |
| static apr_status_t | compress_filter (ap_filter_t *f, apr_bucket_brigade *bb) |
| |
| static void | register_hooks (apr_pool_t *p) |
| |
◆ brotli_ctx_t
◆ brotli_server_config_t
◆ etag_mode_e
| Enumerator |
|---|
| ETAG_MODE_ADDSUFFIX | |
| ETAG_MODE_NOCHANGE | |
| ETAG_MODE_REMOVE | |
Definition at line 26 of file mod_brotli.c.
◆ alloc_func()
◆ cleanup_ctx()
◆ compress_filter()
◆ create_ctx()
◆ create_server_config()
◆ flush()
◆ free_func()
| static void free_func |
( |
void * |
opaque, |
|
|
void * |
block |
|
) |
| |
|
static |
◆ get_content_encoding()
◆ process_chunk()
◆ register_hooks()
◆ set_compression_lgblock()
◆ set_compression_lgwin()
◆ set_compression_quality()
◆ set_etag_mode()
◆ set_filter_note()
◆ aplog_module_index
| int* const aplog_module_index = &( brotli_module.module_index) |
|
static |
◆ cmds
Initial value:= {
{
"BrotliCompressionQuality" ,
set_compression_quality ,
NULL , 128 ,
TAKE1,
"Compression quality between 0 and 11 (higher quality means " "slower compression)" },
{
"BrotliCompressionWindow" ,
set_compression_lgwin ,
NULL , 128 ,
TAKE1,
"Sliding window size between 10 and 24 (larger windows can " "improve compression, but require more memory)" },
{
"BrotliCompressionMaxInputBlock" ,
set_compression_lgblock ,
NULL , 128 ,
TAKE1,
"Maximum input block size between 16 and 24 (larger block " "sizes require more memory)" },
{
"BrotliAlterETag" ,
set_etag_mode ,
NULL , 128 ,
TAKE1,
"Set how mod_brotli should modify ETag response headers: " "'AddSuffix' (default), 'NoChange', 'Remove'" },
}
static const char * set_compression_lgblock(cmd_parms *cmd, void *dummy, const char *arg)
static const char * set_filter_note(cmd_parms *cmd, void *dummy, const char *arg1, const char *arg2)
static const char * set_compression_quality(cmd_parms *cmd, void *dummy, const char *arg)
static const char * set_compression_lgwin(cmd_parms *cmd, void *dummy, const char *arg)
static const char * set_etag_mode(cmd_parms *cmd, void *dummy, const char *arg)
Definition at line 577 of file mod_brotli.c.