Skip to content

Commit 35ebe52

Browse files
http() compression (#168)
Added compression options for htttp dest.
2 parents 6252400 + 523dc0b commit 35ebe52

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

doc/_admin-guide/070_Destinations/090_http_nonjava/001_http_nonjava_options.md

+34
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ The http destination of {{ site.product.short_name }} can directly post log mess
1010
web services using the HTTP protocol. The http destination has the
1111
following options.
1212

13+
## accept-encoding()
14+
15+
| Type:| string|
16+
|Accepted values:| `identity`, `gzip`, `deflate`, `all`|
17+
18+
*Description:* This option requests the compression of HTTP responses from the server. The available values are `gzip`, `deflate`, and `all` to enable all compression types. If no compression is required, use the `identity` value.
19+
20+
### Example: configure an http destination with compression
21+
22+
```config
23+
destination d_http_compressed{
24+
http(url("127.0.0.1:80"),
25+
content-compression("deflate"),
26+
accept-encoding("all"));
27+
};
28+
```
29+
1330
{% include doc/admin-guide/options/batch-bytes.md %}
1431

1532
{% include doc/admin-guide/http-batch.md %}
@@ -59,6 +76,23 @@ version 3.18 and later.
5976

6077
{% include doc/admin-guide/options/cert-file.md %}
6178

79+
## content-compression()
80+
81+
| Type:| string|
82+
|Accepted values:| `identity`, `gzip`, `deflate`, `all`|
83+
84+
*Description:* This option requests {{ site.product.short_name }} to compress sent messages. The available values are `gzip`, `deflate`, and `all` to enable all compression types. If no compression is required, use the `identity` value.
85+
86+
### Example: configure an http destination with compression
87+
88+
```config
89+
destination d_http_compressed{
90+
http(url("127.0.0.1:80"),
91+
content-compression("deflate"),
92+
accept-encoding("all"));
93+
};
94+
```
95+
6296
{% include doc/admin-guide/tls-block.md %}
6397

6498
{% include doc/admin-guide/dedicated-tls-options.md %}

0 commit comments

Comments
 (0)