void h2o_compress_register(h2o_pathconf_t *pathconf, h2o_compress_args_t *args) { struct st_compress_filter_t *self = (void *)h2o_create_filter(pathconf, sizeof(*self)); self->super.on_setup_ostream = on_setup_ostream; self->args = *args; }
void h2o_gzip_register(h2o_pathconf_t *pathconf) { h2o_filter_t *self = h2o_create_filter(pathconf, sizeof(*self)); self->on_setup_ostream = on_setup_ostream; }